Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomDataController.OnDetailCollapsing Event

In This Article

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

#Declaration

Delphi
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