Skip to main content
Tab

VerticalGridAlternatingCellStyle.Enabled Property

Gets or sets whether the style settings used to paint alternating records are enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean Enabled { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

One of the enumeration values.

Available values:

Name Description Return 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

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()

VerticalGridAlternatingCellStyle-Enabled

See Also