Skip to main content
A newer version of this page is available. .
Tab

ASPxTitleIndex.ColumnCount Property

Gets or sets the number of columns within the ASPxTitleIndex.Columns collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(typeof(byte), "0")]
public byte ColumnCount { get; set; }

Property Value

Type Default Description
Byte "0"

An integer value that specifies the number of columns.

Remarks

The ASPxTitleIndex control allows its items to be displayed either within groups or categories. This is controlled by the ASPxTitleIndex.Categorized property.

  • Groups

    Groups display items in one column. The ASPxTitleIndex control allows groups to be arranged into columns. In this instance, the ColumnCount property specifies the number of columns.

    ASPxTitleIndex_ColumnCount2

  • Categories

    Categories are displayed one under another. Items within categories are arranged into columns. The number of item columns within a category is specified by the ColumnCount property.

    ASPxTitleIndex_ColumnCount

Setting the ColumnCount property to a new value automatically modifies the ASPxTitleIndex.Columns collection (columns are added to or removed from the collection). By default, the ASPxTitleIndex.Columns collection is empty, provided that the ColumnCount property’s value is 0 (default value). Setting the ColumnCount property’s value to 3 creates three new columns, and adds them to the ASPxTitleIndex.Columns collection. Then, setting the ColumnCount property’s value to 2, removes the third column from the collection so that it contains only two columns.

Alternatively, changing the ASPxTitleIndex.Columns collection automatically changes the ColumnCount property’s value.

See Also