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.ChangeDetailExpanding(Integer,Boolean) Method

Expands or collapses a master record.

#Declaration

Delphi
function ChangeDetailExpanding(ARecordIndex: Integer; AExpanded: Boolean): Boolean;

#Parameters

Name Type
ARecordIndex Integer
AExpanded Boolean

#Returns

Type
Boolean

#Remarks

The ChangeDetailExpanding function expands or collapses a master record based upon the value of the AExpanded parameter. If the value passed as this parameter is True, a master record is expanded. Otherwise, the master record is collapsed. The master record is identified by its index which is passed as the ARecordIndex parameter.

The ChangeDetailExpanding function returns True if the expansion state of the master record was successfully changed. Otherwise, False is returned.

Call the CollapseDetails method to collapse the details of all the master records within the current data controller.

See Also