Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everyone....

I have a datagridview which has one comboboxcolumn which has 3 Items.
Now to get which Item is selected(from DataGridView comboboxcolumn ) I have used EditingControlShowing event .

It Works fine ,but if i change the selected item without editing the datagridview then
the EditingControlShowing event does not fire .

Is there any way to fire the EditingControlShowing event or another event without changing selected item in DataGridView comboboxcolumn.

Thanks
Posted

1 solution

This is because no editor is really showing on the event you are interested in, quite reasonably. If you need to handle this situation, handle the event SelectionChanged instead: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900