Back to Devexpress

VGridControlBase.BandCount Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-b5202257.md

latest2.0 KB
Original Source

VGridControlBase.BandCount Property

Gets the number of bands currently displayed.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public int BandCount { get; }
vb
<Browsable(False)>
Public ReadOnly Property BandCount As Integer

Property Value

TypeDescription
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):

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

See Also

Bands View Layout

LayoutStyle

BandsInterval

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace