CustomDrawRowHeaderCellEventArgs.AllowHtmlText Property

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

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v20.2.dll


public bool AllowHtmlText { get; set; }
Public Property AllowHtmlText As Boolean

Property Value

Type Description

true if the row caption is formatted using HTML tags; otherwise, false.


For the row being processed, the AllowHtmlText property allows you to specify whether the row caption is formatted using HTML tags. This setting overrides the settings specified by the VGridControlBase.OptionsView.AllowHtmlText and BaseRow.OptionsRow.AllowHtmlText properties.

A code snippet below shows how to format a particular header using HTML tags.

private void vGridControl1_CustomDrawRowHeaderCell(object sender, DevExpress.XtraVerticalGrid.Events.CustomDrawRowHeaderCellEventArgs e) {
    if(e.Caption == "Address") {
        e.Caption = "<b> " + e.Caption + "</b>"; 
        e.AllowHtmlText = true;

For detailed information on supported HTML tags, see the HTML Text Formatting topic.

See Also