Returns the index of the specified C1BaseField derived column object from the C1BaseFieldCollection collection.

Namespace:  C1.Web.UI.Controls.C1GridView
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
public int IndexOf(
	C1BaseField col
)
Visual Basic
Public Function IndexOf ( _
	col As C1BaseField _
) As Integer

Parameters

col
Type: C1.Web.UI.Controls.C1GridView..::..C1BaseField
The C1BaseField derived column object to search for in the C1BaseFieldCollection.

Return Value

The index position of the specified C1BaseField derived column object in the C1BaseFieldCollection. The default value is -1, which indicates that the specified C1BaseField derived object is not found.

See Also