Skip to main content

TcxCustomDataController.ChangeDetailExpanding(Integer,Boolean) Method

Expands or collapses a master record.

Declaration

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