Occurs when the DataGridView compares two cell values to perform a sort operation.
[Visual Basic] Public Event SortCompare As DataGridViewSortCompareEventHandler [C#] public event DataGridViewSortCompareEventHandler SortCompare; [C++] public: __event DataGridViewSortCompareEventHandler* SortCompare;
The event handler receives an argument of type DataGridViewSortCompareEventArgs containing data related to this event. The following DataGridViewSortCompareEventArgs property provides information specific to this event.
Property | Description |
---|---|
CellValue1 | Gets the value of the first cell to compare. |
CellValue2 | Gets the value of the second cell to compare. |
Column | Gets the column being sorted. |
RowIndex1 | Gets the index of the row containing the first cell to compare. |
RowIndex2 | Gets the index of the row containing the second cell to compare. |
SortResult | Gets or sets a value indicating the order in which the compared cells will be sorted. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
DataGridView Class | DataGridView Members | Wimark.Controls Namespace