Home All Groups Group Topic Archive Search About

What happens when you Click in the DataGrid's new row

Author
2 Aug 2006 11:33 AM
fiaolle
Hi
I have a DataGrid with comboboxes and I'm woundering what runs when a user
clicks in the DataGrid or ComboBox. When I choose something in the combobox
with the KeyUp event nothing happens, but when I click and choose an item in
my combobox a new row appear in the DataGrid and that is what I want to
happen when I choose an item by pressing keys.
Is there someway I can get the same thing to happen whether I click or press
keys.

Please Help!!!!

Fia

Author
2 Aug 2006 12:04 PM
Brian Tkatch
fiaolle wrote:
> Hi
> I have a DataGrid with comboboxes and I'm woundering what runs when a user
> clicks in the DataGrid or ComboBox. When I choose something in the combobox
> with the KeyUp event nothing happens, but when I click and choose an item in
> my combobox a new row appear in the DataGrid and that is what I want to
> happen when I choose an item by pressing keys.
> Is there someway I can get the same thing to happen whether I click or press
> keys.
>
> Please Help!!!!
>
> Fia

If you have a ComboBox in a DataGrid (as opposed to a DataGridView) you
are using a user-derived class. You should be able to add any events
that you want into its declaration, including KeyUp.

B.