Back to Devexpress

GridViewDataColumn.BatchEditModifiedCellStyle Property

aspnet-devexpress-dot-web-dot-gridviewdatacolumn-5130157e.md

latest2.9 KB
Original Source

GridViewDataColumn.BatchEditModifiedCellStyle Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public GridViewCellStyle BatchEditModifiedCellStyle { get; }
vb
Public ReadOnly Property BatchEditModifiedCellStyle As GridViewCellStyle

Property Value

TypeDescription
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

aspx
<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

css
#Grid .batchModifiedCellStyle {
    background-color: lightyellow;
}
aspx
<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

GridViewDataColumn Class

GridViewDataColumn Members

DevExpress.Web Namespace