Back to Devexpress

CardView.MaximumCardColumns Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-card-dot-cardview-38274071.md

latest2.6 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(-1)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public int MaximumCardColumns { get; set; }
vb
<DefaultValue(-1)>
<XtraSerializableProperty>
<DXCategory("Appearance")>
Public Property MaximumCardColumns As Integer

Property Value

TypeDefaultDescription
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

MaximumCardRows

AutoHorzWidth

CardWidth

Card and Layout Views

CardView Class

CardView Members

DevExpress.XtraGrid.Views.Card Namespace