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

F

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
 
B

Brian Tkatch

fiaolle said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top