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

TcxGridCardViewOptionsCustomize.CardExpanding Property

Specifies whether cards can be collapsed and expanded.

#Declaration

Delphi
property CardExpanding: Boolean read; write; default False;

#Property Value

Type Default
Boolean False

#Remarks

If the CardExpanding property value is True, you can expand and collapse cards via code using the records’ Expand and Collapse methods. If you need to expand or collapse all cards within the View at once, use the View’s ViewData.Expand and ViewData.Collapse methods. A particular card’s expanded state can be obtained using the corresponding record’s Expanded property.

End-users can also expand and collapse cards. To allow this, the View displays card expand buttons within cards’ caption rows. The expand button’s horizontal alignment is specified using the Card View’s OptionsView.CardExpandButtonAlignment property.

Note

card expand buttons are displayed within the first created caption row. To create a caption row, you need to set the desired row’s Kind property to rkCaption.

The image below shows a Card View that allows end-users to expand and collapse cards.

The default value of the CardExpanding property is False.

See Also