Back to Devexpress

GridBand.RowCount Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridband-f36b13c6.md

latest2.7 KB
Original Source

GridBand.RowCount Property

Gets or sets the band header height in rows.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(1)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(3)]
public virtual int RowCount { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(1)>
<XtraSerializableProperty>
<XtraSerializablePropertyId(3)>
Public Overridable Property RowCount As Integer

Property Value

TypeDefaultDescription
Int321

An integer value specifying the band header height in rows. Values less than 1 are not accepted.

|

Remarks

Band header row height is specified by the View’s BandedGridView.BandPanelRowHeight property. If this property is set to -1 the height of a single band header row is calculated automatically to fit band contents (text and image).

The image below shows the relation between the RowCount and BandedGridView.BandPanelRowHeight properties.

Note : the actual band header height also depends on the GridBand.AutoFillDown property value. If the property value is true , the band header is automatically resized to fill the empty space below it.

See Also

BandPanelRowHeight

AutoFillDown

GridBand Class

GridBand Members

DevExpress.XtraGrid.Views.BandedGrid Namespace