datagrid and combo boxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a need to put a combobox in one column of a datagrid. My problem is that I need to be able to have different datasources for each row of comboboxes. Is there anyway to do this

Thanks
Rut
 
I guess that's the question. I'm not sure how you can bind each combobox (one in each row) to it's own datasource. Can this be done? Or maybe it more in how the combo is added to the datagrid. I assume that if you add a combobox to a datagrid column and set it's datasource then it will be that way for each row.
 
rut said:
I guess that's the question. I'm not sure how you can bind each combobox
(one in each row) to it's own datasource. Can this be done?

May I suggest another approach?

Instead write the data you need to arraylists and populate your combo boxes
with these. You would be making too many round trips on your database
unnecessarily which will slow you down.
 
rut said:
That might be a good work-around although it won't save trips to the
database. The contents of the combo is loaded based on the value entered in
another column of the datagrid.

Can you work with the data in your dataset instead of returning to the
database each time? It looks like you need some concept work here.
 
Back
Top