aspnet-devexpress-dot-web-dot-gridviewtoolbaritem-e2fa42fc.md
Specifies whether a toolbar item is visible when the grid is in Preview Changes mode.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool VisibleInBatchEditPreviewChanges { get; set; }
<DefaultValue(False)>
Public Property VisibleInBatchEditPreviewChanges As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to display a toolbar item; otherwise, false.
|
Run Demo: (Web Forms) Batch Edit ModeRun Demo: (MVC) Batch Edit Mode
In Preview Changes mode, the grid displays predefined toolbar items that allow you to edit data:
To display a custom toolbar item in this mode, set the item’s VisibleInBatchEditPreviewChanges property to true.
<dx:ASPxGridView runat="server" ID="Grid" ...>
<Toolbars>
<dx:GridViewToolbarItem
Text="Edit Commands"
Command="Custom"
VisibleInBatchEditPreviewChanges="true" >
<Items>
<dx:GridViewToolbarItem Command="New" />
<dx:GridViewToolbarItem Command="Edit" />
<dx:GridViewToolbarItem Command="Delete" />
</Items>
</dx:GridViewToolbarItem>
</Toolbars>
...
</dx:ASPxGridView>
Result:
See Also