RowHeightEventArgs.RowHeight Property
Gets or sets the row’s height.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying the row height in pixels. |
Remarks
If a data row is being processed, the RowHeight property’s initial value represents the row height specified by the GridView.RowHeight property. If a group row is being processed, the RowHeight property depends on the GridView.GroupRowHeight property. Note that the View above mentioned can be set to -1. This enables automatic row height calculation so that rows fit a single line of text. The RowHeight property doesn’t match these property values in such cases. It returns the actual row height in pixels.
Assign the desired value to the RowHeight property to change the row’s height. Note that you can set the RowHeight property to -1 so that the row’s height is calculated automatically. The row will fit a single text line in this case.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RowHeight 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.