GridOptionsEditForm.ShowUpdateCancelPanel Property

Gets or sets whether the Update and Cancel buttons are displayed within an Edit Form.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean ShowUpdateCancelPanel { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property ShowUpdateCancelPanel As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean value that specifies whether the Update and Cancel buttons are displayed in an Edit Form.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowUpdateCancelPanel
AdvBandedGridView
.OptionsEditForm.ShowUpdateCancelPanel
BandedGridView
.OptionsEditForm.ShowUpdateCancelPanel
GridView
.OptionsEditForm.ShowUpdateCancelPanel
TileView
.OptionsEditForm.ShowUpdateCancelPanel

Remarks

An Edit Form can contain the Update and Cancel buttons that allow an end-user to save changes in an Edit Form or discard changes and close an Edit Form. By default, these buttons are displayed. You can hide the Update and Cancel buttons by setting the ShowUpdateCancelPanel property to False. If these buttons are not displayed, an end-user can press the Escape key to discard changes in an EditFrom. Changes in an EditFrom can be saved using the Ctrl+Enter key combination or by moving focus to another grid row. The action performed on moving focus to another grid row can be set by the GridOptionsEditForm.ActionOnModifiedRowChange property.

NOTE

The ShowUpdateCancelPanel property is not in effect if the GridOptionsBehavior.EditingMode is set to GridEditingMode.EditForm. In this case, the Update and Cancel buttons are displayed in the Edit Form even if the ShowUpdateCancelPanel property is set to False.

See Also