Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I bind a collection to a control?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00971040
Message ID:
00971100
Views:
21
Bob,
I am glad to hear that I can set my collection object as the datasource, but it didn't work as smoothly as I antisipated.
this.myComboBox.DataSource = myCollection;
I have 4 items in this collection at runtime and the combobox displayed 4 elements but those elements were all class names (including namespace).
It just occured to me that I might have to implement ToString() for the class in the collection, is that correct?

Einar


>Yep, just set the collection as the data source. We do this all the time, binding combos to our custom collections that contain business objects.
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform