BaseRow.Height Property
Gets or sets the row’s height.
Namespace: DevExpress.XtraVerticalGrid.Rows
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
#Declaration
[DefaultValue(-1)]
[DXCategory("Layout")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleY)]
public virtual int Height { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | An integer value specifying the row’s height in pixels. |
#Remarks
By default all rows have the same height. The required height is automatically calculated based on the view styles applied (note that the focused row’s style is not taken into account). If the Height property value is -1, the row’s height is automatically changed in order to display the row header’s caption. If the row header’s caption exceeds the row header’s width then the row’s height is automatically increased and the row’s caption is wrapped. The number of text lines is specified by the BaseRow.MaxCaptionLineCount property. If the BaseRow.MaxCaptionLineCount property value is 0, the row’s height is automatically calculated to display the entire row header’s caption. Otherwise, the caption is truncated.
You can also assign the Height property a positive integer to manually specify row height. Note that the Height property cannot be set to a value less than the value specified by the BaseRow.MinHeight property.
End-users can change the row’s height by dragging its bottom edge. Row resizing is enabled for end-users only if the row’s VGridOptionsRow.AllowSize option is enabled.