Connecting Tech Pros Worldwide Help | Site Map

DataGridViewComboBox problem

Newbie
 
Join Date: Sep 2007
Location: Pittsburgh
Posts: 4
#1: Oct 16 '08
I have a datagridview with two comboboxcolumns. I want the combobox in column B to be dynamically filled with data from the database depending on which item is selected in column A. How do I go about this?

Thanks for your help. I am not a novice, but I am certainly not a master.

Andy
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,155
#2: Oct 16 '08

re: DataGridViewComboBox problem


I think comboboxcolumn B has to be an unbound column then, and you need to create a query based on the state of box A?

I am confused though, if both sets of data come from a database, why not just make your initial query return the correct values?
Newbie
 
Join Date: Sep 2007
Location: Pittsburgh
Posts: 4
#3: Oct 23 '08

re: DataGridViewComboBox problem


Each row may contain something different in col a, which would generate something different in col b.

For example, column a for some rows will contain subsidiary detail, but other rows, no. Does that make sense?
arevans
Reply