Bindable property collection

2 posts, 0 answers
  1. Petr
    Petr avatar
    9 posts
    Member since:
    Apr 2014

    Posted 21 Sep 2015 Link to this post

    Hey,

     when I fetch data from the database, the collection holding the data is always TrackedList<T>. Is there a way to change it so the underlying collection is of type that can be databound?

    Let's say we have 2 entities, Company and Employee.

    I fetch the list of companies from the database and provide it as item source for a combobox

     

    public ObservableCollection<Company> Companies = new ObservableCollection<Company>(Model.Companies);     

  2. Petr
    Petr avatar
    9 posts
    Member since:
    Apr 2014

    Posted 21 Sep 2015 in reply to Petr Link to this post

    Sadly I didn't find an option to delete/update a post so I reposted again here. Feel free to delete this topic.
  3. DevCraft banner
Back to Top