Object Reference > True DBGrid Methods > GetBand Method |
GetBand Method
The GetBand method returns the band number corresponding to a grid column.
TDBGrid.GetBand (columnindex)
Arguments
columnindex is a zero-based integer that identifies a Column object.
Return Value
An integer corresponding to the index of the band of a particular grid column.
The return value is used with the CollapseBand and ExpandBand methods when manipulating master-detail displays in code.
This method is only supported by the OLE DB version of True DBGrid Pro. It is used only in bound mode and has no effect in unbound or storage modes.
Note
This property is only supported by the OLE DB version of True DBGrid Pro.