Back to Devexpress

TileViewItemOptions.ColumnCount Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewitemoptions-7060dcbc.md

latest4.2 KB
Original Source

TileViewItemOptions.ColumnCount Property

Gets or sets the maximum or exact number of columns (depending on layout mode) to accommodate tiles. The ColumnCount property is in effect when the TileViewItemOptions.Orientation setting is Vertical. The property is ignored in Kanban layout mode.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
Int320

The number of columns to accommodate tiles.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ColumnCount
TileView

.OptionsTiles .ColumnCount

|

Remarks

The ColumnCount property is in effect when the TileViewItemOptions.Orientation setting is Vertical. The property’s value is interpreted differently in different layout modes.

Default layout mode

When tile stretching is disabled (see TileView.OptionsTiles.StretchItems), the ColumnCount property specifies the maximum number of columns to accommodate tiles. If the property is set to 0 , the column number is not limited.

When tile stretching is enabled, the ColumnCount property specifies the exact number of displayed columns, as in List layout mode.

List layout mode

The ColumnCount property specifies the exact number of displayed columns. If the property is set to 0 , the actual column number is 1.

Kanban layout mode

The ColumnCount property is ignored. The Tile View generates columns (Kanban groups) based on unique values provided by the TileView.ColumnSet.GroupColumn column. You can also manually create Kanban Groups via the TileView.OptionsKanban.Groups collection.

See Also

LayoutMode

RowCount

Orientation

StretchItems

TileViewItemOptions Class

TileViewItemOptions Members

DevExpress.XtraGrid.Views.Tile Namespace