Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawRowHeaderCellEventArgs.AllowHtmlText Property

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

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

public bool AllowHtmlText { get; set; }

#Property Value

Type Description
Boolean

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

#Remarks

The AllowHtmlText event parameter specifies whether the current row caption can be formatted using HTML tags. This property overrides the control’s OptionsView.AllowHtmlText and the row’s VGridOptionsRow.AllowHtmlText properties.

The code snippet below formats a row caption with 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;
    }
}
See Also