Skip to main content

Edit Data

  • 2 minutes to read

Read Tutorial: Edit Data in Code

Refresh Data

Press the F5 key to reload data from the data source.

Delete Rows

Based on the DeleteKeyBehavior property, the GridControl deletes the focused row or selected rows when a user presses the Delete key.

Activate a Cell Editor

Do one of the following:

  • Click a cell.
  • Focus a cell with the arrow keys, and press ENTER or F2.
  • Focus a cell and enter a new value. The editor replaces the cell’s content with the entered value.

Select Cell Text

Press ENTER or F2 if a cell is focused, or CTRL+A if a cell editor is active.

Close a Cell Editor and Accept Changes

Do one of the following:

  • Press ENTER.
  • Click or focus another cell.
  • Focus another control.

Discard Changes

To discard changes in a focused cell, press ESC.

Open a Cell Editor’s Drop-down

Do one of the following:

  • Press ALT+DOWN ARROW.
  • Click an editor’s drop-down button.

Change Values

Change Date/Time Values

Open a cell’s drop-down calendar, or:

  1. Activate a Cell Editor.
  2. Press CTRL+RIGHT/LEFT ARROW to select a portion of a date/time value.
  3. To increment a value, press CTRL+UP ARROW; to decrement - CTRL+DOWN ARROW.

Change Numeric Values

To increment a value, press CTRL+UP ARROW; to decrement - CTRL+DOWN ARROW.

Change Cell’s Editor Dropdown Values

To select the previous value, press CTRL+UP ARROW; press CTRL+DOWN ARROW to select the next value.