Skip to main content
A newer version of this page is available. .

VGridControlBase.RowHeaderWidth Property

Gets or sets the width of row headers.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.2.dll

Declaration

[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public int RowHeaderWidth { get; set; }

Property Value

Type Description
Int32

An integer value which specifies the width of row headers.

Remarks

The RowHeaderWidth and VGridControlBase.RecordWidth properties specify the widths of row headers and records respectively, in either absolute values (pixels) or relative values.

Absolute values are used when:

Relative values are used when row headers and the current record are stretched to fit the control’s width. This happens in the following cases:

In these latter modes, each of the RowHeaderWidth and VGridControlBase.RecordWidth properties can be set to a value in the range [15;185]. The other property’s value is calculated by subtracting this value from 200. So, the sum of the properties is always equal to the constant value of 200. The absolute widths will be proportional to the specified relative values.

In addition, resizing the control horizontally in these modes modifies the width of row headers accordingly. To prevent row headers from being resized, set the BaseOptionsView.FixRowHeaderPanelWidth property to true.

Changing the RowHeaderWidth property’s value raises the VGridControlBase.RowHeaderWidthChanged event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowHeaderWidth 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.

See Also