Skip to main content
Tab

GridBatchEditSettings.AllowRegularDataItemTemplate Property

Specifies whether the grid renders the template content or displays the modified cell value after editing ends.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool AllowRegularDataItemTemplate { get; set; }

Property Value

Type Default Description
Boolean false

true to render the template content after editing ends; false to display the modified cell value.

Remarks

In batch edit mode, the grid invokes in-place editors to modify grid data. When a templated cell switches from batch edit to browse mode, the grid replaces the template content with the modified cell value.

ASPxGridView.BatchEditMode - AllowRegularDataItemTemplate_false

To display the template content after editing ends, set the AllowRegularDataItemTemplate property to true.

AllowRegularDataItemTemplate_true

<dx:ASPxGridView ID="Grid" runat="server" AutoGenerateColumns="false" ...">
    <Columns>
        <dx:GridViewDataTextColumn FieldName="LastName" />
        <dx:GridViewDataTextColumn FieldName="FirstName" />
        <dx:GridViewDataColumn Caption="Rating" FieldName="Unbound" ...>
            <DataItemTemplate>
                <dx:ASPxRatingControl ID="RatingControl" runat="server"></dx:ASPxRatingControl>
            </DataItemTemplate>
        </dx:GridViewDataColumn>
    </Columns>
    <SettingsEditing Mode="Batch">
        <BatchEditSettings AllowRegularDataItemTemplate="true" />
    </SettingsEditing>
</dx:ASPxGridView>

View Example: How to access and modify a template control in batch edit mode

Online Example

View Example: How to use an edit item and data item templates in batch mode

See Also