DataGridViewColumnCollection.IndexOf Method (DataGridViewColumn)

 

Gets the index of the given DataGridViewColumn in the collection.

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

public int IndexOf(
	DataGridViewColumn dataGridViewColumn
)

Parameters

dataGridViewColumn
Type: System.Windows.Forms.DataGridViewColumn

The DataGridViewColumn to return the index of.

Return Value

Type: System.Int32

The index of the given DataGridViewColumn.

.NET Framework
Available since 2.0
Return to top
Show: