[Webinar] Streamline your web hosting managementRegister Today


C# WPF Databinding to Linq

Posted on 2008-01-30
Medium Priority
Last Modified: 2013-11-26
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?
Question by:msg1234
  • 3

Accepted Solution

msg1234 earned 0 total points
ID: 20814710
I think Continuous Linq is what I'm looking for: http://www.ddj.com/windows/205604421

Author Comment

ID: 21407132
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.

Author Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question