bind existing combobox in datagridview?

prosys

Member
Joined
Aug 7, 2008
Messages
13
Programming Experience
Beginner
Hi,

Im developing a windows application(VB.NET) application.

Here i have added a combobox column inside the datagridview.

I have the Combobox in column 2

I have to dynamically fill the combo box when column1 combo box is selected.

For ex

Column1 Combobox1 - If i select Tamil Nadu

Column2 Combobox2 - All the districts in TamilNadu has to be displayed.

How to solve this.. I am using Datagridview in VB.NET

Thx in advance
 
You need to handle the EditingControlShowing event. There you can get a reference to the control that will be embedded in the cell and populate it appropriately, based on its column and row indexes.
 
Back
Top