Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
685
ListView Databinding
posted

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?

Parents
No Data
Reply
  • 29105
    Offline posted

    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

Children