ASPxTitleIndex.ColumnCount Property
Gets or sets the number of columns within the ASPxTitleIndex.Columns collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
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.
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.
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.