Home All Groups Group Topic Archive Search About

Delete key in DataGridViewComboBoxCell

Author
24 Sep 2007 1:49 AM
mrstrong
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

Author
7 Nov 2007 7:25 PM
Brendon Bezuidenhout
mrstrong,

Look into the ProcessCmdKey method

Brendon

Show quote
"mrstrong" <p.str***@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
>

AddThis Social Bookmark Button