Back to Devexpress

GridOptionsEditForm.ShowUpdateCancelPanel Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionseditform-0a8b2664.md

latest3.3 KB
Original Source

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

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

Declaration

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

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn 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 TypePath 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

GridOptionsEditForm Class

GridOptionsEditForm Members

DevExpress.XtraGrid.Views.Grid Namespace