GridView.ColumnPanelRowHeight Property

Gets or sets the column header row height.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

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

Property Value

Type Default Description
Int32

-1

An integer value specifying the column header row height in pixels. -1 to calculate this height automatically depending on column header contents.

Remarks

When the ColumnPanelRowHeight property value is -1, the column header row height is calculated depending on the column header content. The height is calculated to fit the header image with a single text line (according to its current style). Note that the column header row height cannot be less than this calculated value regardless of the ColumnPanelRowHeight property. The property can only be used to increase the header height.

In Grid Views and Banded Grid Views columns are always arranged into a single row. Thus, the ColumnPanelRowHeight property specifies the actual column header height. In Advanced Banded Grid Views, column headers can be rearranged into several rows. You can also use a column's BandedGridColumn.RowCount property to specify the number of rows occupied by the column header. If the BandedGridColumn.AutoFillDown property value is true the column header is automatically resized to occupy the empty rows below it. In this case, the actual column header height depends on the ColumnPanelRowHeight, BandedGridColumn.RowCount and BandedGridColumn.AutoFillDown properties in combination.

See Also