Skip to main content

GridView.GroupRowHeight Property

Gets or sets the height of group rows.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public int GroupRowHeight { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value specifying the height of group rows in pixels. -1 to calculate the group row height automatically.


The height of group rows cannot be less than that required to fit a single text line. The text line height is calculated according to the current appearance settings. When the GroupRowHeight property value is -1, group rows use this minimum required height. You can increase the group row height using the GroupRowHeight property.

Note that you can apply different styles to group rows residing on different grouping levels. The GridView.GroupLevelStyle event should be handled for this purpose. You can also specify a custom style for each separate group row using the GridView.CustomDrawGroupRow event. Such style modifications do not affect the height of group rows even when the GroupRowHeight property value is -1.

To provide custom heights for individual group rows, handle the GridView.CalcRowHeight event.

Please refer to the Rows topic for additional information

See Also