ComponentOne True DBGrid Pro 8
CollapseBand Method

 

Object Reference> True DBGrid Methods> CollapseBand Method

CollapseBand Method

The CollapseBand method collapses all rows in a hierarchical grid display for the specified band.

Syntax

TDBGrid.CollapseBand band

Arguments

band is a zero-based index that identifies a particular band.

Return Value

None

Remarks

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.

See Also

TDBGrid Control

 

 


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

Product Support Forum  |  Documentation Feedback