Skip to main content

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

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 Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

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