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.v22.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool RowAutoHeight { get; set; }
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 |
---|---|
GridView |
|
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:
- MemoEdit (RepositoryItemMemoEdit)
- RepositoryItemRichTextEdit
- TokenEdit (RepositoryItemTokenEdit)
- PictureEdit (RepositoryItemPictureEdit)
- HypertextLabel (RepositoryItemHypertextLabel)
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.
Important
The Auto Filter Row does not work if the Asynchronous Image Load and Auto Row Height options are enabled. Disable the Auto Row Height option.