I’m developing in WPF and want my DataGrid to automatically refresh when there’s a change in the DB, and vice versa.
Today I’m using Timers and simple Selects to perform the updates.
Is there something in .Net that provides that functionality ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately Database are “pull” data sources and doesn’t provide any “Push” data model to make your code notify about the changes, until you implement pseudo push which is basically what you have mentioned i.e timers polling the database. Other option may be to implement a Trigger which calls a CLR SP and this SP is able to send the data to your code through remoting or something like that.