CustomDrawRowHeaderCellEventArgs.AllowHtmlText Property
Gets or sets whether the row caption is formatted using HTML tags.
Namespace: DevExpress.XtraVerticalGrid.Events
Assembly: DevExpress.XtraVerticalGrid.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the row caption is formatted using HTML tags; otherwise, false. |
Remarks
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