Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataGridViewSortCompareEventArgs Constructor

DataGridViewSortCompareEventArgs Constructor

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft