LayoutViewOptionsMultiRecordMode.MaxCardColumns Property
Gets or sets the maximum number of columns displayed in the View. This option is in effect when multiple columns are allowed to be displayed (in Row, MultiRow and MultiColumn view modes).
Namespace: DevExpress.XtraGrid.Views.Layout
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int MaxCardColumns { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | An integer value that specifies the maximum number of columns displayed in the View. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to MaxCardColumns |
---|---|
LayoutView |
|
Remarks
When the LayoutViewOptionsView.ViewMode property is set to Row, MultiRow or MultiColumn, the LayoutView allows multiple cards to be arranged horizontally.
By default, the MaxCardColumns property is set to 0, and so the View displays the maximum number of columns that it can arrange. To limit the maximum number of columns, set the MaxCardColumns property to a corresponding value. To limit the maximum number of rows, use the LayoutViewOptionsMultiRecordMode.MaxCardRows property.