'Declaration
<SRCategoryAttribute("CatData")> <System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Advanced)> <SRDescriptionAttribute("DataGridView_SortCompareDescr")> Public Event SortCompare As System.Windows.Forms.DataGridViewSortCompareEventHandler
'Usage
Dim instance As NDataGridView Dim handler As System.Windows.Forms.DataGridViewSortCompareEventHandler AddHandler instance.SortCompare, handler
[SRCategory("CatData")] [System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)] [SRDescription("DataGridView_SortCompareDescr")] public event System.Windows.Forms.DataGridViewSortCompareEventHandler SortCompare
Event Data
The event handler receives an argument of type System.Windows.Forms.DataGridViewSortCompareEventArgs containing data related to this event. The following DataGridViewSortCompareEventArgs properties provide 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. |
Handled | (Inherited from System.ComponentModel.HandledEventArgs) |
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. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also