A newer version of this page is available. Switch to the current version.

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


public DefaultBoolean AllowHtmlText { get; set; }
Public Property AllowHtmlText As DefaultBoolean

Property Value

Type Default Description


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

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowHtmlText


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.


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