DataGridViewSortCompareEventArgs Class
Provides data for the SortCompare event of the DataGridView control.
You can use this event to sort rows using the cell values in one column or in multiple columns. Use the CellValue1 and CellValue2 properties to compare cell values in the column specified in the Column property. Use the RowIndex1 and RowIndex2 properties to access values in other columns through the DataGridViewRowCollection.
Namespace: elsystem.windows.forms