Click here to Skip to main content
15,880,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have checked list box .
i want to bind data from sql table.
PPPPPPPLLLEESSSSSEEEEE help me
Posted
Comments
[no name] 29-Nov-11 4:32am    
have checkedlistbox .
i want to bind data from sql table.
please help me
how it can be implement
please help me

or u can send me ur idea on my email id its lakhanp22@gmail.com

1 solution

 
Share this answer
 
Comments
vivek shaushi 4-Aug-11 9:40am    
but in windows form application,
CheckBoxList1.DataSource = myDataSet;not working
Toniyo Jackson 4-Aug-11 9:48am    
What error you are getting?
vivek shaushi 4-Aug-11 9:52am    
checkedBoxList does not contain any definition for datasource
nivshah 11-Nov-12 23:20pm    
SqlDataAdapter da = new SqlDataAdapter("SELECT NAME AC_CODE FROM AccountM where compcode='" + Compcls.Gcomp_cd + "'", con);



DataSet ds = new DataSet();
da.Fill(ds, "AccountM ");
checkedListBox1.DataSource = ds;

checkedListBox1.SelectedValue = "AC_CODE";
checkedListBox1.SelectedItem = "NAME";
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900