Kundan  Jha

Kundan Jha

  • 770
  • 1.1k
  • 320.9k

CheckedListBox in Windows Application

Nov 10 2015 8:42 AM
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)
{}
 
 
 
 
 
 
 
 
 

Answers (1)