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
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
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.
To display the template content after editing ends, set the AllowRegularDataItemTemplate
property to 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>
Online Example
See Also