I have a normal asp.net combobox on my web page. The current version is databinding a a datatable object, but I want to change it so that it databinds to a Collection but I am getting errors.
I’ve tried using an ObjectDataSource, but they have CRUD commands that I don’t need.
So the question is… How can I databind an asp.net combobx to a collection ? Do I need to convert it to a list (possibly time-consuming) or is there a better way ?
Every object whose type inherits IEnumerable can be bound to any object that supports databinding, so just do
and it will work fine.