GridOptionsView.RowAutoHeight Property

Gets or sets whether the Data Grid automatically adjusts data row heights depending on cell content.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool RowAutoHeight { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property RowAutoHeight As Boolean

Property Value

Type Default Description
Boolean

false

true to change the data row height automatically; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to RowAutoHeight
AdvBandedGridView
.OptionsView.RowAutoHeight
AdvBandedGridView
.OptionsView.RowAutoHeight
AdvBandedGridView
.OptionsView.RowAutoHeight
BandedGridView
.OptionsView.RowAutoHeight
BandedGridView
.OptionsView.RowAutoHeight
GridView
.OptionsView.RowAutoHeight

Remarks

When cells display large text values or images, you can enable the RowAutoHeight feature to ensure that the cells display their contents completely.

The row auto height feature is supported when grid cells embed one of the following in-place editors:

If you disable the RowAutoHeight option, all data rows have the same height specified by the View's GridView.RowHeight property.

NOTE

Advanced banded grid Views do not support automatic row height calculation, so the RowAutoHeight property is not in effect.

If the RowAutoHeight property is set to true, pixel-based vertical row scrolling is not available, even if the GridOptionsBehavior.AllowPixelScrolling property is forcibly set to True.

See Also