VB.NET 2003[Problem Binding CheckedListBox]

Posted by Webmaster under ASP.NET on 9/6/2008 | Views : 2846 | Status : [Administrator] | Replies : 1
Good Afternoon

All I want to bind a CheckedListBox from a data table. So far this is what i wrote con.Open() da.Fill(ds, "Clients") con.Close() 'Binding the Listbox td = ds.Tables("Clients") CheckedListBox1.Sorted = True CheckedListBox1.DataSource = td CheckedListBox1.DisplayMember = "Client_Email" So where i Run my Application it shows me the "System.Data.DatarowView" "Client_Email" is the Field in my datatable. What is it that am not Doing ok?

Thank you
Posted on behalf of Vuyiswamb

Best regards,


Posted by: Vuyiswamb on: 1/12/2009 [Member] [MVP] [Administrator] NotApplicable

Swap the DisplayMember with the DataSource and it will work

Thank you for posting at Dotnetfunda

Webmaster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response