IndexOf Method
Description
Returns the index of a GridColumn within the collection of columns.
Syntax
Public Function IndexOf( _
ByVal [Column] As [GridColumn](XtremeGridControl~GridColumn.md) _
) As Integer
Parameters
- Column: The column to search for within the GridControl's collection of SortOrder or GroupOrder columns.
Return Type
Index of the specified column, -1 if the column is not found.
Remarks
Searches for the first occurrence of the given column, beginning the search at index zero of the collection of columns. This is used to determine if a column is in one of the GridControl's SortOrder or GroupOrder collections. If it is, then the index of that column is returned.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.