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.v24.1.dll

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

Declaration

[DefaultValue(0)]
[XtraSerializableProperty]
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
LayoutView
.OptionsView .DefaultColumnCount

Remarks

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