I'm loading a dropdown from the DB. When a selection is made I need to populate a listview from the DB. The items I'm pulling are a list of tables, views functions, etc. So I also need an icon for each object type. They'll be sorted by name initially, so ever item will have its icon but they won't be grouped together. Unfortunately I can't seem to find any good resources for loading a listview from a DB, much less adding icons like that.
Does anyone have a resource, or even a simple example?
Hello Sean,
Thank you for contacting Infragistics. The ListView component never supported direct DataBinding, but it has an Items collection with an AddRange method. Once you loaded your DB into a storage source (DataSet, DataTable, etc.) you can iterate that add the records to the Items collection. For more details please review this article.
Thanks for the response. I'll take a look at the article. I don't understand that though.
1. Why doesn't it support data binding? It's very common to load lists from bound sources.
2. If it doesn't support it, then why does it have a DataBindings method?