Object Reference > True DBGrid Events > Collapse Event |
Collapse Event
The Collapse event is fired when a user clicks on the collapse row icon ("–") in an expanded hierarchical grid row.
TDBGrid_Collapse (Band As Integer, Cancel as Integer)
Arguments
Band is a zero-based index that identifies which recordset level holds the current row within a master-detail hierarchy.
Cancel is an integer that may be set to True to prohibit the user from collapsing the current row.
Event applies to TDBGrid control (OLE DB only).
Note
Setting the Cancel parameter to True ignores the user action and does not collapse the row.
This property is only supported by the OLE DB version of True DBGrid Pro.