Back to Devexpress

VGridOptionsRow.AllowHtmlText Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-vgridoptionsrow.md

latest3.2 KB
Original Source

VGridOptionsRow.AllowHtmlText Property

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

Namespace : DevExpress.XtraVerticalGrid.Rows

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean AllowHtmlText { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Property AllowHtmlText As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowHtmlText
BaseRow

.OptionsRow .AllowHtmlText

|

Remarks

The VGridOptionsRow.AllowHtmlText property allows you to override the control’s OptionsView.AllowHtmlText setting for individual rows. See this topic for more information.

The code below enables HTML formatting and specifies bold text for a row’s caption.

csharp
rowLastName.OptionsRow.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True;
rowLastName.Properties.Caption = "<b>Last Name</b>";
vb
rowLastName.OptionsRow.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True
rowLastName.Properties.Caption = "<b>Last Name</b>"

See Also

AllowHtmlText

Caption

HTML-inspired Text Formatting

VGridOptionsRow Class

VGridOptionsRow Members

DevExpress.XtraVerticalGrid.Rows Namespace