Skip to main content
Tab

GridViewStyles.BatchEditCell Property

Specifies the appearance of edit cells.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public GridViewCellStyle BatchEditCell { get; }

Property Value

Type Description
GridViewCellStyle

Style settings that specify the appearance of edit cells.

Remarks

ASPxGridView allows you to customize the appearance of edit cells that the grid displays in batch edit mode. Use the BatchEditCell property to specify the appearance of edit cells in markup or in a CSS class.

ASPxGridView - EditCellStyle

Markup Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="ProductID" >
    <Columns>
        <!-- ... -->
        <dx:GridViewDataTextColumn FieldName="ProductID">
            <PropertiesTextEdit>
                <ValidationSettings RequiredField-IsRequired="true" Display="Static" />
            </PropertiesTextEdit>
        </dx:GridViewDataTextColumn>
    </Columns>
    <SettingsEditing Mode="Batch" />
    <Styles>
        <BatchEditCell BackColor="LightSteelBlue" />
    </Styles>
</dx:ASPxGridView>

CSS Example

#Grid .batchEditCellStyle {
    background-color: lightsteelblue;
}
<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="ProductID" >
    <Columns>
        <!-- ... -->
        <dx:GridViewDataTextColumn FieldName="ProductID">
            <PropertiesTextEdit>
                <ValidationSettings RequiredField-IsRequired="true" Display="Static" />
            </PropertiesTextEdit>
        </dx:GridViewDataTextColumn>
    </Columns>
    <SettingsEditing Mode="Batch" />
    <Styles>
        <BatchEditCell CssClass="batchEditCellStyle" />
    </Styles>
</dx:ASPxGridView>
See Also