Skip to main content
A newer version of this page is available. .

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.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Grid

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean ShowUpdateCancelPanel { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

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

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowUpdateCancelPanel
GridView
.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