I have a set of two comboboxes. When the value of combo1 changes I need to change the selecteditem of combo2. The selecteditem of combo2 is related to the particular value selected in combo1.
The mechanics of this is easy enough but I'm having a problem.
Since the combobox (combo2) is databound, its items are datarowviews. This means I cannot use items.indexof to search for my value. combo2.FindString and combo2.FindStringExact will not work in this instance because I need to search by the value.
I can easily find the DataRow in the original DataSource.DataTable that the value is in but how do I convert it to a DataRowView which I can search on using indexof?
Or can someone think of a better way?
Thanks,
Scott
The mechanics of this is easy enough but I'm having a problem.
Since the combobox (combo2) is databound, its items are datarowviews. This means I cannot use items.indexof to search for my value. combo2.FindString and combo2.FindStringExact will not work in this instance because I need to search by the value.
I can easily find the DataRow in the original DataSource.DataTable that the value is in but how do I convert it to a DataRowView which I can search on using indexof?
Or can someone think of a better way?
Thanks,
Scott