Skip to main content
Tab

GridViewStyles.BatchEditNewRow Property

Specifies the appearance of inserted rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public GridViewDataRowStyle BatchEditNewRow { get; }

#Property Value

Type Description
GridViewDataRowStyle

Style settings that specify the appearance of inserted rows.

#Remarks

In batch edit mode, the grid marks out inserted rows. The BatchEditNewRow property allows you to specify the appearance of these rows in markup and in a CSS class.

#Markup Example

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

#CSS Example

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