All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TableView.ShowUpdateRowButtons Property

Gets or sets a mode that specifies how to show the buttons which allow you to update rows.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public ShowUpdateRowButtons ShowUpdateRowButtons { get; set; }
Public Property ShowUpdateRowButtons As ShowUpdateRowButtons

Property Value

Type Description
ShowUpdateRowButtons

A mode that specifies how to show the buttons which allow you to update rows.

Remarks

The GridControl provides an edit mode that allows you to edit an entire row and only then post changes to the datasource. In this mode, the GridControl shows the Update and Cancel buttons for the row that is being edited. You should change the row's cell values and then click Update to post chages:

You cannot navigate away from an edited row unless you click the Update / Cancel button or press Esc twice.

TIP

Demo: Edit Entire Row

Requires a WPF Subscription. Download

To enable the Edit Entire Row mode, specify the ShowUpdateRowButtons property:

  • When the property value is OnCellEditorOpen, the buttons are shown after you open a cell editor:

  • When the property value is OnCellValueChange, the buttons are shown after you change a cell value:

Click the Update button to post the edited row's changes to the datasource. Alternatively, you can call the TableView.UpdateRow / TreeListView.UpdateRow method or the TableViewCommands.UpdateRow / TreeListViewCommands.UpdateRow command.

Click the Cancel button to discard the edited row's changes. Alternatively, you can call the TableView.CancelRowChanges / TreeListView.CancelRowChanges method or the TableViewCommands.CancelRowChanges / TreeListViewCommands.CancelRowChanges command.

Use the TableView.UpdateRowButtonsTemplate / TreeListView.UpdateRowButtonsTemplate property to change the appearance of the Update and Cancel buttons.

Limitations

  • The Edit Entire Row mode is available in optimized mode only.
  • The Edit Entire Row mode is incompatible with the Edit Form.
See Also