Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF datagrid detect changes to database via external source

$
0
0

I've searched for a long time now and can't find the answer I seek. I have a datagrid that is bound to my entity:

Entity e = new Entity();
dataGrid1.DataContext = e.Table;

I have this bound to my dataGrid. Here is XAML:

<DataGrid AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding}">

I've got all my Columns defined manually and everything shows up great. Now I want to detect changes... NOT changes that I make via the application!!!!! I am trying to detect when changes occur to the underlying database via ANY source. I essentially want this up on my screen and to go update a field via SSMS and to see the update take place in my currently running application as well! Is this possible?

I've tried to convert my anon type to ObservableCollection... no luck! I then tried to create a class that implements INotifyPropertyChanged... no luck! I then tried to inherit from ObservableCollection on my class... no luck! Can someone show me a very simplistic version of how this can be accomplished, if it can?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>