[]
        
(Showing Draft Content)

C1.Blazor.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)
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.