Object Reference > True DBGrid Methods > CollapseBand Method |
CollapseBand Method
The CollapseBand method collapses all rows in a hierarchical grid display for the specified band.
TDBGrid.CollapseBand band
Arguments
band is a zero-based index that identifies a particular band.
Return Value
None
This is a useful way to quickly collapse all of the records in the band with one step, instead of one record at a time. Note that all of the Bands that are below the one specified in the hierarchy will also be collapsed.
You can use the GetBand method to obtain the band number corresponding to a particular grid column.
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.