DataGridViewSortCompareEventArgs::RowIndex1 Property
.NET Framework (current version)
Gets the index of the row containing the first cell to compare.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
This property is useful when sorting rows based on the cell values in multiple columns.
The following code example demonstrates the use of RowIndex1 in a multiple column sort. This example is part of a larger example provided in How to: Customize Sorting in the Windows Forms DataGridView Control.
.NET Framework
Available since 2.0
Available since 2.0
Show: