Back to Devexpress

RowHeightEventArgs.RowHeight Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-rowheighteventargs-fb2a7557.md

latest2.3 KB
Original Source

RowHeightEventArgs.RowHeight Property

Gets or sets the row’s height.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public int RowHeight { get; set; }
vb
Public Property RowHeight As Integer

Property Value

TypeDescription
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.

See Also

GroupRowHeight

RowHeight

RowHeightEventArgs Class

RowHeightEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace