Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: CheckComboBox Binding Data

$
0
0
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.
  1. I set
    cmbBox.Itemsource=listOfItems;
  2. 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);
But there should be a better option right??

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>