Skip to main content

TcxGridCardViewOptionsView.CardAutoWidth Property

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

Declaration

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