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

Declaration

[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int DefaultColumnCount { get; set; }
<DefaultValue(0)>
<XtraSerializableProperty>
Public Overridable Property DefaultColumnCount As Integer

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