aspnet-devexpress-dot-web-dot-aspxtitleindex-95465977.md
Gets or sets the number of columns within the ASPxTitleIndex.Columns collection.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(typeof(byte), "0")]
public byte ColumnCount { get; set; }
<DefaultValue(GetType(Byte), "0")>
Public Property ColumnCount As Byte
| Type | Default | Description |
|---|---|---|
| Byte | "0" |
An integer value that specifies the number of columns.
|
The ASPxTitleIndex control allows its items to be displayed either within groups or categories. This is controlled by the ASPxTitleIndex.Categorized property.
Groups
Categories
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