DataGridViewSortCompareEventArgs(DataGridViewColumn, Object, Object, Int32, Int32) DataGridViewSortCompareEventArgs(DataGridViewColumn, Object, Object, Int32, Int32) DataGridViewSortCompareEventArgs(DataGridViewColumn, Object, Object, Int32, Int32) Constructor

定义

初始化 DataGridViewSortCompareEventArgs 类的新实例。Initializes a new instance of the DataGridViewSortCompareEventArgs class.

public:
 DataGridViewSortCompareEventArgs(System::Windows::Forms::DataGridViewColumn ^ dataGridViewColumn, System::Object ^ cellValue1, System::Object ^ cellValue2, int rowIndex1, int rowIndex2);
public DataGridViewSortCompareEventArgs (System.Windows.Forms.DataGridViewColumn dataGridViewColumn, object cellValue1, object cellValue2, int rowIndex1, int rowIndex2);
new System.Windows.Forms.DataGridViewSortCompareEventArgs : System.Windows.Forms.DataGridViewColumn * obj * obj * int * int -> System.Windows.Forms.DataGridViewSortCompareEventArgs

参数

dataGridViewColumn
DataGridViewColumn DataGridViewColumn DataGridViewColumn

要排序的列。The column to sort.

cellValue1
Object Object Object

要比较的第一个单元格的值。The value of the first cell to compare.

cellValue2
Object Object Object

要比较的第二个单元格的值。The value of the second cell to compare.

rowIndex1
Int32 Int32 Int32

包含第一个单元格的行的索引。The index of the row containing the first cell.

rowIndex2
Int32 Int32 Int32

包含第二个单元格的行的索引。The index of the row containing the second cell.

适用于

另请参阅