I have a DataGridViewComboBoxCell in a DataGridView. When it is
selected and
the user presses Delete key it is reseted to default value (or first
value in
ComboBox).

How can I override this default behavior and delete entire row
instead?

Thanks,

Peter

Re: Delete key in DataGridViewComboBoxCell by Brendon

Brendon
Wed Nov 07 11:25:17 PST 2007

mrstrong,

Look into the ProcessCmdKey method

Brendon

"mrstrong" <p.strong@gmail.com> wrote in message
news:1190598561.462086.283480@50g2000hsm.googlegroups.com...
>I have a DataGridViewComboBoxCell in a DataGridView. When it is
> selected and
> the user presses Delete key it is reseted to default value (or first
> value in
> ComboBox).
>
> How can I override this default behavior and delete entire row
> instead?
>
> Thanks,
>
> Peter
>