Skip to main content
A newer version of this page is available. .

GridView.GroupRowHeight Property

Gets or sets the height of group rows.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleY)]
[DXCategory("Appearance")]
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.

Remarks

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupRowHeight property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also