piDogDataView.DataView.RowComparison

Scope: Public
Event RowComparison(Row1 as integer, Row2 as integer, Column as integer, byref result as integer) As Boolean
Return true to use a custom sort order. Set Result to -1 the specify less-than, +1 for greater than and 0 for equal.


//example showing custom sort routine

If Me.cell(row1,column)>Me.cell(row2,Column) Then
result=1
Elseif Me.cell(row1,column)=Me.cell(row2,column) Then
result=0
Else
result=-1
End If

Return true