This is a migrated thread and some comments may be shown as answers.

Bindable property collection

1 Answer 24 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Petr
Top achievements
Rank 1
Petr asked on 21 Sep 2015, 03:41 PM

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);     

1 Answer, 1 is accepted

Sort by
0
Petr
Top achievements
Rank 1
answered on 21 Sep 2015, 03:57 PM
Sadly I didn't find an option to delete/update a post so I reposted again here. Feel free to delete this topic.
Tags
Development (API, general questions)
Asked by
Petr
Top achievements
Rank 1
Answers by
Petr
Top achievements
Rank 1
Share this question
or