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

 

Initializes a new instance of the DataGridViewSortCompareEventArgs class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
DataGridViewSortCompareEventArgs(
	DataGridViewColumn^ dataGridViewColumn,
	Object^ cellValue1,
	Object^ cellValue2,
	int rowIndex1,
	int rowIndex2
)

Parameters

dataGridViewColumn
Type: System.Windows.Forms::DataGridViewColumn^

The column to sort.

cellValue1
Type: System::Object^

The value of the first cell to compare.

cellValue2
Type: System::Object^

The value of the second cell to compare.

rowIndex1
Type: System::Int32

The index of the row containing the first cell.

rowIndex2
Type: System::Int32

The index of the row containing the second cell.

.NET Framework
Available since 2.0
Return to top
Show: