VerticalGridAlternatingCellStyle.Enabled Property
Gets or sets whether the style settings used to paint alternating records are enabled.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | One of the enumeration values. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
Web Forms 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