here is my code.... i'm working with c# winform
void fillChecklist()
{
try
{
con.Open();
string ct = "select * FROM Detail";
cmd = new SqlCommand(ct);
cmd.Connection = con;
SqlDataReader rdr = cmd.ExecuteReader();
while (rdr.Read())
//fill the checkListBox with all the table record
{
checkedListBox1.Items.Add(rdr.GetString(1));
if (rdr.GetString(1)==1)
{
//check every row in the checkListbox where STATUS =1
//this is where I’m having major issue
}//end if
}//end while
}//end try
finally
{
con.Close();
}
}//end fillChecklist method