Skip to main content

TcxCustomDataController.OnDetailCollapsing Event

Occurs when the details of a particular master record are about to be collapsed.

Declaration

property OnDetailCollapsing: TcxDataDetailExpandingEvent read; write;

Remarks

Handle the OnDetailCollapsing event to control whether the details of a particular master record can be collapsed.

The ADataController parameter specifies the data controller which fires the event.

The ARecordIndex parameter specifies the index of the master record whose details are about to be collapsed.

Set the AAllow parameter to False to prevent the details of the master record from being collapsed. Otherwise, the details will be collapsed (which is done by default).

Note

The OnDetailCollapsed event is not fired when the AAllow parameter is set to False within the OnDetailCollapsing event handler.

See Also