Please Let me know, What types of Data a CheckedListBox Contains?
Problem:
I have Bind the CheckedListBox using following codes:-
CLB_Subjects.DataSource = DAL.GetDataFromSql("select * from tblsubject");
CLB_Subjects.DisplayMember = "subjectname";
CLB_Subjects.ValueMember = "subjectID";
Now,
I unable to iterate Items form collection CheckedListBox using Foreach loop Below:-
foreach (CheckedListBox item in CLB_Subjects.Items)
{}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Nishant MittalRank #692 · 3.5K reputationPosted Nov 10, 2015, 9:34 PM EST