GridView.GroupRowHeight Property

Gets or sets the height of group rows.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleY)]
[DXCategory("Appearance")]
public int GroupRowHeight { get; set; }
<DefaultValue(-1)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleY)>
<DXCategory("Appearance")>
Public Property GroupRowHeight As Integer

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

See Also