Object Reference > True DBGrid Events > Expand Event |
Expand Event
The Expand event is fired when a user clicks on the expand row icon ("+") in a collapsed hierarchical grid row.
TDBGrid_Expand (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 expanding the current row.
Event applies to TDBGrid control (OLE DB only).
Setting the Cancel parameter to True ignores the user action and does not expand the row.
Note
This property is only supported by the OLE DB version of True DBGrid Pro.