Skip to main content

LayoutViewOptionsView.DefaultColumnCount Property

Gets or sets the default number of columns into which layout items are arranged in the template card.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public virtual int DefaultColumnCount { get; set; }

Property Value

Type Default Description
Int32 0

An integer value that specifies the default number of layout columns.

Property Paths

You can access this nested property as listed below:

Object Type Path to DefaultColumnCount
.OptionsView .DefaultColumnCount


By default, when the DefaultColumnCount property is set to 0, the number of layout columns in the template card is automatically calculated based on the total height of layout items. You can use the DefaultColumnCount property to explicitly specify the number of layout columns. In the figures below, you can see the same card whose items are arranged into one and two layout columns, respectively.

LayoutViewOptionsView_DefaultColumnCount_1 LayoutViewOptionsView_DefaultColumnCount_2

See Also