Back to Devexpress

ASPxTitleIndex.ColumnCount Property

aspnet-devexpress-dot-web-dot-aspxtitleindex-95465977.md

latest2.5 KB
Original Source

ASPxTitleIndex.ColumnCount Property

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

Declaration

csharp
[DefaultValue(typeof(byte), "0")]
public byte ColumnCount { get; set; }
vb
<DefaultValue(GetType(Byte), "0")>
Public Property ColumnCount As Byte

Property Value

TypeDefaultDescription
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

  • 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

Categorized

Columns

Title Index

ASPxTitleIndex Class

ASPxTitleIndex Members

DevExpress.Web Namespace