Hey all,
I'm trying to link multiple columns from a table based in SQL Server to a list box on one of my Visual Basic 2005 forms. I've set up the datatable correctly, and I can obtain individual values from it using datarow, however I wish to populate a list box with all the records from both its fields. When I try to set the lists datasource to the datatable, it displays System.Data.DataRowView in the list box for however many records there are. Can anyone please help? And yes don't be cynical, I do not have massive knowledge on VB.Net, but the book I've read through doesn't go into enough detail on binding, and I can't find the answer elsewhere on the net. If someone could please let me know the commands to use, or where i can find them I would be most grateful.
I'm trying to link multiple columns from a table based in SQL Server to a list box on one of my Visual Basic 2005 forms. I've set up the datatable correctly, and I can obtain individual values from it using datarow, however I wish to populate a list box with all the records from both its fields. When I try to set the lists datasource to the datatable, it displays System.Data.DataRowView in the list box for however many records there are. Can anyone please help? And yes don't be cynical, I do not have massive knowledge on VB.Net, but the book I've read through doesn't go into enough detail on binding, and I can't find the answer elsewhere on the net. If someone could please let me know the commands to use, or where i can find them I would be most grateful.