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
295
How to add values from object list in ListView
posted

I have a List<> which is returned from a struct with three columns. How do I assign the values of this list to UltraWinListView since there is no DataSource tried using "AddRange" but that does not allow to use a Object Collection.

 The only option I could think of was to add each item at a time using "Items.Add".

Parents
No Data
Reply
  • 69832
    Offline posted

    You are better off creating an UltraListViewItem for each item in your generic list, adding each UltraListViewItem to an array (of type UltraListViewItem), then passing that array to AddRange, so you don't generate a property change notification for each item that you add, which could affect performance adversely.

Children
No Data