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

CardView.MaximumCardColumns Property

Gets or sets the maximum number of card columns which can be displayed simultaneously within a View.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DefaultValue(-1)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public int MaximumCardColumns { get; set; }

#Property Value

Type Default Description
Int32 -1

The maximum number of card columns displayed simultaneously within a View.

#Remarks

Cards are arranged in rows and columns. The number of visible rows is determined by the View height and it can be limited with the CardView.MaximumCardRows property. Similarly, the number of visible columns is determined by the View width and it can be limited with the MaximumCardColumns property.

The MaximumCardColumns property is most often used when the auto width feature (CardOptionsBehavior.AutoHorzWidth) is enabled. See the Card and Layout Views topic to learn more.

See Also