CustomDrawRowHeaderCellEventArgs.AllowHtmlText Property
Gets or sets whether the row caption can be formatted using HTML tags.
Namespace: DevExpress.XtraVerticalGrid.Events
Assembly: DevExpress.XtraVerticalGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
Declaration
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