In a .NET winforms application, how can I filter the data in my 2nd ComboBox with respect to the value selected in my 1st ComboBox?
ComboBox
Assuming WinForms:
combo2.DataSource = ((IEnumerable)c.DataSource) .Where(x => x == (string)combo1.SelectedValue);
Of course you might need to replace IEnumerable with IEnumerable.
IEnumerable