I know that you can bind to any property in a listbox's DataSource in a windows form using syntax of the format:
Code:
ListBox1.DataBindings.Add(New Binding("BackColor", MyDataSet, "Customers.Background"))
where ListBox1 is a listbox, BackColor is the custom property you want to set by binding, and Customers.Background identifies the column in the dataset MyDataSet that you want to use to dictate the BackColor property.
I've heard that you can also do the above on a webform, though a listbox as it appears on a webform doesn't have a DataBindings property. Could any of you tell me if I'm mistaken about being able to bind any property of a Web Control to a column from a dataset, and if not what the syntax for achieving that should be, please?
Thanks,
Rach.
