MGCompareRows

Top  Previous  Next

This event may be fired many times when sorting a column - triggered by clicking the column header - is processed.

[Visual Basic .NET]

Public Event MGCompareRows(ByVal s As Object, ByVal e As CompareRowsEventArgs)

[C#]

public event MGCompareRows(object s, CompareRowsEventArgs e);

Parameters

s

    Specifies the sender object.

 

e

    is the object of CompareRowsEventArgs Class with the following members:

1.GridIndex specifies the index of current active grid where sorting occurs. -1 indicates the full grid; for a sub grid, this member's value must be between 0 and the return value of GetTotalSubGrids() minus 1.

2.SectionIndex specifies the section index (0-based) of the sorted cells. If the AllowSections is set to FALSE or the active grid is a sub grid not the full grid, this parameter becomes irrelevant.

3.CurrColumnIndex specifies the current column index (0-based) of the sorted cell(s).

4.OrigColumnIndex specifies the original column index (0-based) of the sorted cell(s).

5.LeftCurrRowIndex specifies the current row index (0-based) of the left cell involved in the comparison operation.

6.LeftOrigRowIndex specifies the original row index (0-based) of the left cell involved in the comparison operation.

7.LeftString specifies the text value of the left cell involved in the comparison operation.

8.RightCurrRowIndex specifies the current row index (0-based) of the right cell involved in the comparison operation.

9.RightOrigRowIndex specifies the original row index (0-based) of the right cell involved in the comparison operation.

10. RightString specifies the text value of the right cell involved in the comparison operation.

11. Result points to a variable holding the comparison result, which can be -1, 0, or 1.