Skip to main content

LayoutViewOptionsMultiRecordMode.MaxCardRows Property

Gets or sets the maximum number of rows displayed in the View. This option is in effect when multiple rows are allowed to be displayed (in Column, MultiColumn and MultiRow view modes).

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public virtual int MaxCardRows { get; set; }

Property Value

Type Default Description
Int32 0

An integer value that specifies the maximum number of rows displayed in the View.

Property Paths

You can access this nested property as listed below:

Object Type Path to MaxCardRows
.OptionsMultiRecordMode .MaxCardRows


When the LayoutViewOptionsView.ViewMode property is set to Column, MultiColumn or MultiRow, the LayoutView allows multiple cards to be arranged vertically. By default, the MaxCardRows property is set to 0, and so the View displays the maximum number of rows that it can arrange. To limit the maximum number of rows, set the MaxCardRows property to a corresponding value. To limit the maximum number of columns, use the LayoutViewOptionsMultiRecordMode.MaxCardColumns property.

See Also