Skip to main content
Tab

GridViewDataColumn.BatchEditModifiedCellStyle Property

Specifies the appearance of the column’s modified data cells.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public GridViewCellStyle BatchEditModifiedCellStyle { get; }

Property Value

Type Description
GridViewCellStyle

Style settings that specify the appearance of the column’s modified data cells.

Remarks

In batch edit mode, the grid marks out the data cells that contain unsaved changes.

The GridViewDataColumn.BatchEditModifiedCellStyle property allows you to specify the appearance of the column’s modified cells in markup and in a CSS class.

To customize the appearance of all modified data cells in the grid, specify the GridView.Styles.BatchEditModifiedCell property.

Markup Example

<dx:ASPxGridView ID="Grid" runat="server" KeyFieldName="ID" OnBatchUpdate="Grid_BatchUpdate">
<!-- ... -->
    <Columns>
    <!-- ... -->
        <dx:GridViewDataSpinEditColumn FieldName="C2">
            <BatchEditModifiedCellStyle BackColor="LightCoral"></BatchEditModifiedCellStyle>
        </dx:GridViewDataSpinEditColumn>
        <dx:GridViewDataTextColumn FieldName="C3">
            <BatchEditModifiedCellStyle BackColor="LightYellow"></BatchEditModifiedCellStyle>
        </dx:GridViewDataTextColumn>
        <!-- ... -->
    </Columns>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>

CSS Example

#Grid .batchModifiedCellStyle {
    background-color: lightyellow;
}
<dx:ASPxGridView ID="Grid" runat="server" KeyFieldName="ID" AutoGenerateColumns="false">
    <Columns>
        <!-- ... -->
        <dx:GridViewDataTextColumn FieldName="C3">
            <BatchEditModifiedCellStyle CssClass="batchModifiedCellStyle" />
        </dx:GridViewDataTextColumn>
        <!-- ... -->
    </Columns>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>
See Also