Skip to main content
Tab

ASPxSiteMapControlBase.ColumnCount Property

Gets or sets the number of columns displayed within the site map control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Byte "0"

An integer value representing the number of columns within the site map control.

Remarks

The ColumnCount property specifies the total number of columns contained within the site map control’s ASPxSiteMapControlBase.Columns collection. The value of this property is automatically synchronized with the actual number of columns: column objects are automatically added or removed from the collection when the ColumnCount property’s value is changed, and vice versa.

If the ColumnCount property is set to 0 (the default value), the ASPxSiteMapControlBase.Columns collection is empty but the number of columns displayed within the site map depends upon the ASPxSiteMapControlBase.Categorized property setting.

  • If the ASPxSiteMapControlBase.Categorized property is set to false, the site map data are displayed in one column.
  • The ASPxSiteMapControlBase.Categorized property set to true causes the site map to display each category group with the number of columns equal to the number of the corresponding first nesting level nodes (these nodes are the immediate children of the top level node which, in its turn, serves as a category name).

Note

When the ColumnCount property is set to 0, the column appearance is defined by the settings which are available via the ASPxSiteMapControlBase.ColumnStyle property.

The ColumnCount property can be used together with the collection’s Collection<T>.Item property to iterate through all columns within the column collection.

See Also