Click here to Skip to main content
15,886,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How can I get the selectedItemIndex in a Datagridview comboboxcell in windows form application..
Thanks in advance....
Posted
Updated 28-Oct-14 20:06pm
v3
Comments
BillWoodruff 29-Oct-14 2:19am    
Also see:

http://stackoverflow.com/a/6051032/133321

http://stackoverflow.com/a/13470592/133321

 
Share this answer
 
int selectedindex = ((DataGridViewComboBoxCell)rulerow.Cells[0]).Items.IndexOf(rulerow.Cells[0].Value.ToString());
 
Share this answer
 
Comments
Manu Prasad 29-Oct-14 2:09am    
Thanks Praneet...
Hello ,
Check this link
thanks
animesh
 
Share this answer
 

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



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