Friday, June 29, 2012

How to bind dataset to checkedlistbox in C#.net

How to bind dataset to checkedlistbox in C#.net

You can assign the data set to checkedlistbox also but the Intellisense is not showing the Data source property to the checkedlistbox.Below is the example.

//example

 checkedListBox1.DataSource = ds.Tables["t1"];
            checkedListBox1.DisplayMember = "t1";

This will surely works happy coding.



No comments:

Post a Comment

amazon

Sukanya Samriddhi Account - SBI

SUKANYA SAMRIDDHI Account information by SBI SUKANYA SAMRIDDHI ACCOUNT : FACILITY AVAILABLE AT ALL BRANCHES OF SBI Sukanya Samriddhi ...