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

TcxCustomGridRecord.Expandable Property

Gets whether the record can be expanded and/or collapsed.

#Declaration

Delphi
property Expandable: Boolean read;

#Property Value

Type
Boolean

#Remarks

If this property returns True, then the record can be successfully expanded and collapsed using the record’s Expand, Collapse methods and the Expanded property. The Expandable property also determines whether the View’s ViewData.Expand and ViewData.Collapse methods will affect the record.

If the Expandable property returns False, the View will not paint visual elements that allow end-users to expand and collapse records.

As implemented in the TcxCustomGridRecord class, the Expandable property simply returns False. This property’s actual value depends on the record type (TcxCustomGridRecord descendant). The table below lists record classes that support expanding and collapsing and provides information on the Expandable property return value.

Record class

The Expandable property’s return value

TcxGridGroupRow

Returns True except for the case when the data controller’s dcoGroupsAlwaysExpanded option is enabled.

TcxGridMasterDataRow

Returns True if at least one of the following conditions is met:

TcxGridCard

Returns True if the View’s OptionsCustomize.CardExpanding property value is True.

See Also