[]
        
(Showing Draft Content)

C1.WinUI.Grid.GridColumnCollection.IndexOf

IndexOf Method

IndexOf(string)

Gets the index of the column with a given name in the collection.

Declaration
public int IndexOf(string colName)
Public Function IndexOf(colName As String) As Integer
Parameters
Type Name Description
string colName

Header or Binding to look for.

Returns
Type Description
int

The index of the column, or -1 if the collection does not contain any columns with the given name.