Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

CheckedListBox

$
0
0

 have Operations in checkedListBox1(datas are coming from database to checkedListBox1).

But datas are come to flowLayoutPanel1 as "System.Data.Entity"

I tried this code:

IsEmriEkle.Instance.ucIsEmir31.flowLayoutPanel1.Controls.Clear();
 for(int i = 0; i < checkedListBox1.CheckedItems.Count; i++)
 {
   Label lbl = new Label();
   lbl.Name = checkedListBox1.CheckedItems[i].ToString();

   lbl.Text = checkedListBox1.CheckedItems[i].ToString();

   IsEmriEkle.Instance.ucIsEmir31.flowLayoutPanel1.Controls.Add(lbl);
 }

How can I get values of CheckedItems ?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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