Find Method
Description
Finds a GridColumn by its ItemIndex.
Syntax
Public Function Find( _
ByVal [ItemIndex](#) As Long _
) As [GridColumn](XtremeGridControl~GridColumn.md)
Parameters
- ItemIndex: The ItemIndex of the desired GridColumn.
Return Type
Returns a GridColumn with the specified ItemIndex.
Remarks
Searches the collection of columns sequentially to find the first column matching the specified ItemIndex. If no match is found, NULL is returned.
Example
Finding a Column by ItemIndex (Visual Basic)
This sample illustrates how to find a column within the GridControl's collection of columns by its ItemIndex.
Dim Column As GridColumn
' Finds a column within the GridControl's collection of columns and
' returns a reference to the column if found
Set Column = wndGridControl.Columns.Find(COLUMN_CHECK)
' The properties of the column can now be accessed
Column.Resizable = False
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.