RowHeightEventArgs.RowHeight Property

Gets or sets the row's height.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

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

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.

See Also