Hi,
I can't figure out how to programmatically select items in checkboxlist.
This method of cource doesn't compile, but I want to show you what a result I want to get.
public ColumnsSelector(Dictionary<string, bool> dataPropertyNames)
: this()
{
foreach (var item in dataPropertyNames)
{
checkedListBox1.Items.Add(item.Key);
checkedListBox1.Items[checkedListBox1.Items.IndexOf(item.Key)].Checked = item.Value;
}
}
How do you force with this problem?