Skip to main content
Tab

GridViewToolbarItem.VisibleInBatchEditPreviewChanges Property

Specifies whether a toolbar item is visible when the grid is in Preview Changes mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

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

Property Value

Type Default Description
Boolean false

true to display a toolbar item; otherwise, false.

Remarks

Run Demo: (Web Forms) Batch Edit Mode Run Demo: (MVC) Batch Edit Mode

In Preview Changes mode, the grid displays predefined toolbar items that allow you to edit data:

GridViewToolbarItem - VisibleInBatchEditPreviewChanges Property

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:

GridViewToolbarItem - VisibleInBatchEditPreviewChanges Property

Concept

See Also