Memento

Memento

  • NA
  • 111
  • 133.2k

c# DataGridView EditMode and DeleteKey

Jun 3 2012 9:18 PM
c# winforms
My DataGridView has:
SelectionMode - CellSelect
EditMode - EditOnKeyStroke
It works well for all Keys except fot DeleteKey (when pressed - nothing happend).
I want - if DeleteKey is pressed - selected Cell (or Cells) stay selected, but - empty value (like in Excel).
Must I create a separate KeyDownEvent for DeleteKey only ?

Answers (3)