Link to home
Start Free TrialLog in
Avatar of msg1234
msg1234

asked on

C# WPF Databinding to Linq

I can query in Linq to return a collection from the database and then in turn bind that to a WPF ListView.ItemsSource.

The problem is, the ListView does not update when the database is changed.  Is there a way to have a notification when a table is changed and then tell the listview to re-query the bounded linq collection, or re-source the listview?
ASKER CERTIFIED SOLUTION
Avatar of msg1234
msg1234

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msg1234
msg1234

ASKER

From what I can tell, Linq does not return an Observable Collection and cannot track changes.  My solution is to use Continuous Linq to maintain a bindable collection and continually update that collection manually using linq.
Avatar of msg1234

ASKER

BTW Sync Linq may work, but I'm not sure it's mature enough for what I need.