Please post a code snippet on how to bind data to this checkedcomb box. I find it difficult to understand how to pass two data valus, one containing the total Items and the other containing selected items of these.
I tried the following and it worked but I just want to bind a single data source.
I tried the following and it worked but I just want to bind a single data source.
-
I set
cmbBox.Itemsource=listOfItems; -
I added the items to be selected to the SelectedItems property using a foreach loop. And these items are also added in the
foreach(string str in LstSelectedItems)
cmbBox.SelectedItems.Add(str);