Skip to main content
Tab

GridViewStyles.BatchEditDeletedRow Property

Specifies the appearance of deleted rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public GridViewDataRowStyle BatchEditDeletedRow { get; }

#Property Value

Type Description
GridViewDataRowStyle

Style settings that specify the appearance of deleted rows.

#Remarks

In batch edit mode, the grid highlights deleted rows. The BatchEditDeletedRow property allows you to specify the appearance of these rows in markup and in a CSS class.

To remove deleted rows from the grid instead of highlighting them, set the HighlightDeletedRows property to false.

#Markup Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ProductID">
    <!-- ... -->
    <Styles>
        <BatchEditDeletedRow BackColor="LightYellow" />
    </Styles>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>

#CSS Example

#ASPxGridView1 .batchDeletedRow {
    background-color: lightyellow;
}
<dx:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ProductID">
    <!-- ... -->
    <Styles>
        <BatchEditDeletedRow CssClass="batchDeletedRow" />
    </Styles>
    <SettingsEditing Mode="Batch" />
</dx:ASPxGridView>
See Also