Skip to main content

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

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

Declaration

[DefaultValue(0)]
[XtraSerializableProperty]
public int ColumnCount { get; set; }

Property Value

Type Default Description
Int32 0

The number of columns to accommodate tiles.

Property Paths

You can access this nested property as listed below:

Object Type Path 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.

Tile View - **LayoutMode: Default**<br/>Orientation: Vertical, ColumnCount: 3, StretchItems: false

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.

Tile View - **LayoutMode: List** <br/>Orientation: Vertical

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