Skip to main content
A newer version of this page is available. .
Tab

VerticalGridAlternatingCellStyle.Enabled Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

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

VerticalGridAlternatingCellStyle-Enabled

See Also