I am working with winform. I found this code which throwing error The type or namespace name 'ComboBoxItem' could not be found (are you missing a using directive or an assembly reference?)
var selectedperiods = cboPeriods.Items.Cast<ComboBoxItem>().Where(i => (int.Parse(i.Value.ToString())) == 1);
i am getting error for ComboBoxItem. tell me how to sort it ?. i have to use LINQ to extract data from ComboBox with where filter. thanks