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

VGridOptionsRow.AllowHtmlText Property

Gets or sets whether a row caption is formatted using HTML tags.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean AllowHtmlText { get; set; }

Property Value

Type Default Description
DefaultBoolean **Default**

True if a row caption is formatted using HTML tags; False if not; Default uses the VGridControl.OptionsView.AllowHtmlText setting.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowHtmlText
BaseRow
.OptionsRow.AllowHtmlText
CategoryRow
.OptionsRow.AllowHtmlText
EditorRow
.OptionsRow.AllowHtmlText
MultiEditorRow
.OptionsRow.AllowHtmlText

Remarks

If the VGridControl is bound to a data source, row captions are automatically fetched from the corresponding data source field names. You can also provide a custom caption for a particular row using the RowProperties.Caption setting accessible through the row’s EditorRow.Properties.

The AllowHtmlText property specifies whether the row caption is formatted using HTML tags. This property overrides the global setting specified using the VGridControlBase.OptionsView.AllowHtmlText property. If the AllowHtmlText property is set to Default, the feature for the current row header is controlled by that global setting. The code below enables HTML formatting and specifies bold text for a particular row. For the list of supported HTML tags, see HTML Text Formatting.


rowLastName.OptionsRow.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True;
rowLastName.Properties.Caption = "<b>Last Name</b>";

See the result below.

VGridOptionsView_AllowHtmlText

Also, you can handle the VGridControlBase.CustomDrawRowHeaderCell event and use the CustomDrawRowHeaderCellEventArgs.AllowHtmlText property to enable this feature for particular row headers according to your logic.

See Also