VerticalGridAlternatingCellStyle.Enabled Property
Gets or sets whether the style settings used to paint alternating records are enabled.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | **Default** | One of the DefaultBoolean enumeration values. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
Remarks
WebForms approach:
<dx:ASPxVerticalGrid runat="server" ID="VerticalGrid" Width="100%">
<Rows>
...
</Rows>
<Styles>
<AlternatingRecord Enabled="True" />
</Styles>
</dx:ASPxVerticalGrid>
MVC approach:
@Html.DevExpress().VerticalGrid(settings => {
settings.Name = "VerticalGrid";
...
settings.Styles.AlternatingRecord.Enabled = true;
...
}).Bind(Model).GetHtml()
See Also