Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VGridControlBase.BandCount Property

Gets the number of bands currently displayed.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

[Browsable(false)]
public int BandCount { get; }

#Property Value

Type Description
Int32

An integer value that indicates the number of currently displayed bands.

#Remarks

When the bands layout is applied to the vertical grid control, a single record is displayed within the control at a time. If record cells don’t fit into the control vertically, they are arranged in bands (see the image below):

BandsLayout - BandCount

The BandCount property returns the number of bands a record occupies. For the image above this property returns 2.

See Also