Back to Devexpress

LayoutViewOptionsView.DefaultColumnCount Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionsview-264ce5ea.md

latest2.4 KB
Original Source

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.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
Int320

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

See Also

LayoutViewOptionsView Class

LayoutViewOptionsView Members

DevExpress.XtraGrid.Views.Layout Namespace