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

TcxGridCardViewOptionsView.CardAutoWidth Property

Specifies whether the card width is automatically adjusted while resizing the View.

#Declaration

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

#Property Value

Type Default
Boolean False

#Remarks

Set the CardAutoWidth property to True, to automatically resize visible cards to fit the View without card clipping, when the View is horizontally resized.

The following takes place while resizing:

  • If the View is being extended, visible cards are widened until there’s enough space for one more card column.

Cards are not further resized if all of them are displayed in the View. Empty space fills the View in this instance.

  • If the View is being narrowed, visible cards are also narrowed until card width reaches its minimum. The number of card columns is reduced in this case.

The maximum and minimum width of a card when resizing are specified by the CardWidth property and cxGridCardMinWidth constant respectively.

If the CardAutoWidth property is False, cards are not resized when the View is resized.

The default value of the CardAutoWidth property is False.

See Also