I have a datagridview control and it has 3 combo boxes on it. I wish the datagridview to populate from a query. My issue is that these combo boxes have logic behind them. When you make a selection on the first it determines what data shows up in the second. When make a selection on the second it determines what shows up in the third. So when the form is first shown I just populate the valid values for the first combobox. This all works fine UNTIL I wish to populate the datagrid from the select query.
Since the second and third comboboxes aren't populated right away because they have dependecies, the population of the datagridview from the database query errors out because it's expecting the second and third comboboxes to have values to select from.
It's like when I do my initial load I just want the data from the database to be added to the control no matter what. But when adding records the logic of these comboboxes is used.
Any ideas how I can do this?
Since the second and third comboboxes aren't populated right away because they have dependecies, the population of the datagridview from the database query errors out because it's expecting the second and third comboboxes to have values to select from.
It's like when I do my initial load I just want the data from the database to be added to the control no matter what. But when adding records the logic of these comboboxes is used.
Any ideas how I can do this?