BCGControlBar Library for .NET
ColumnFromDataIndex Method




Specifies a zero-based index.
Returns a column from data index.
Syntax
'Declaration
 
Public Function ColumnFromDataIndex( _
   ByVal idx As Integer _
) As GridColumn
'Usage
 
Dim instance As GridControl
Dim idx As Integer
Dim value As GridColumn
 
value = instance.ColumnFromDataIndex(idx)
public GridColumn ColumnFromDataIndex( 
   int idx
)
public: GridColumn* ColumnFromDataIndex( 
   int idx
) 
public:
GridColumn^ ColumnFromDataIndex( 
   int idx
) 

Parameters

idx
Specifies a zero-based index.

Return Value

A column with specified data index or null.
Remarks
The actual order of columns in ColumnCollection can be changed when the user moves columns around, sou you may want to use this method to find out a column corresponding to the actual data index in GridDataRow.ItemCollection.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback