dotnetmonitor.com |
|
|||||||||||||
| By default, users
can edit the contents of the current DataGridView text box cell by typing in it
or pressing F2. This puts the cell in edit mode if all of the following
conditions are met:
In edit mode, the user can change the cell value and press ENTER to commit the change or ESC to revert the cell to its original value.
You can configure a DataGridView control so that a cell enters edit mode as soon as it becomes the current cell. The behavior of the ENTER and ESC keys is unchanged in this case, but the cell remains in edit mode after the value is committed or reverted. You can also configure the control so that cells enter edit mode only when users type in the cell or only when users press F2. Finally, you can prevent cells from entering edit mode except when you call the BeginEdit method.
The following table describes the different edit modes available:
|
|||||||||||||
|
|||||||||||||