RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBCtrlGrid.PanelIndex Property

Specifies the index of the panel in the grid that represents the current record.

Pascal
property PanelIndex: Integer;
C++
__property int PanelIndex;

Read PanelIndex to determine which panel represents the current record in the dataset. Set PanelIndex to move in the dataset to the record corresponding to a panel in the grid. 

PanelIndex is a number in the range 0 to PanelCount - 1, where 0 is the first panel, 1 is the second panel, and so on. The location of the panel with the index PanelIndex depends on the value of the Orientation property. When Orientation is goVertical, the panels are counted by rows. When Orientation is goHorizontal, the panels are counted by columns. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!