Binding Datasetto checkbox list

Posted by Self-innovator under VB.NET on 1/17/2012 | Points: 10 | Views : 2053 | Status : [Member] | Replies : 2
how to bind the dataset values to checkbox list while form loads in windows application....and to display the selected value in a label

Join Hands Change lives
Thanks & Regards
Straight Edge Society



Responses

Posted by: Ogipansrk on: 1/17/2012 [Member] Starter | Points: 25

Up
0
Down
DataSet ds = new DataSet();
CheckBoxList1.DataSource = ds;
CheckBoxList1.DataTextField = "Name";
CheckBoxList1.DataValueField = "ID";
CheckBoxList1.DataBind();


Self-innovator, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vinay13mar on: 10/31/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
Check this link this may help you

http://www.dotnetpools.com/Article/ArticleDetiail/?articleId=59&title=MVC3%20CheckBoxList%20Operations%20with%20jQuery

Self-innovator, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response