FlexGrid for WinForms
DataIndex Property (Row)

Gets the index of this row in the RowCollection collection, excluding fixed and node rows.
Public ReadOnly Property DataIndex As Integer
Dim instance As Row
Dim value As Integer
value = instance.DataIndex
public int DataIndex {get;}
property int DataIndex {
   int get();

This property returns -1 if the row is a fixed or node row.

If the grid is bound to a data source, the return value can be used as an indexer into the grid's data source to obtain a reference to the item bound to the row.

You can also obtain the underlying data object directly using the row's DataSource property.


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


Row Class
Row Members



Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback