Question How to get Selected Index of Datagridviewcombobox column.

Mazhar

Member
Joined
Aug 27, 2016
Messages
15
Programming Experience
Beginner
Can anybody help to let me know that
How can i get the Selected index of Datagridviewcombobox column in vb.net 2010.

Thanks
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,603
Location
Norway
Programming Experience
10+
There is only a ComboBox when the cell is in edit mode, between CellBeginEdit and CellEndEdit events, outside this there is only the cell Value that was selected during edit. The EditingControlShowing event lets you attach to the editing control, and the help topic for that event has a relevant code example.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,717
Location
Sydney, Australia
Programming Experience
10+
You almost certainly shouldn't need that property value. If you can explain to us why you think you do, we can*probably suggest an alternative. In short, always provide a FULL and CLEAR explanation of the issue. Tell us what you're trying to achieve rather than just how you're trying to achieve it because there's every chance that the how is wrong so there's no point our helping you with it.
 
Top Bottom