Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm a novice C# developer/MySQL admin and I'm trying to figure out how do I have a MySQL table send table updates or inserts to a C# client app whenever the table is updated or a new record is inserted.

As of now I've been using a really crude way of accomplishing this; what I've been doing is using a timer in the C# client app to query the MySQL table every second and check for an update and if an update occurred then I pull this data from the table into the C# client for visual display.

Can someone please point me in the right direct as to the correct way of doing this.

Thanks,

-Donald
Posted

Take a look at the MSDN Docs for the BindingSource[^] Component. Particularly the Remarks section.

Does this sound like what you want?

If so, then (theoretically, at least. I've never used it with MySql.) all you have to do is set the DataSource property of the BindingSource to whatever is your current data source, then set the DataSource for your controls to the BindingSource.
 
Share this answer
 
Thanks for the response Henry Minute but that's not what I'm looking for. I don't want to bind the control to the table. I need to analyze the database table data each time the table is updated and if it meets a certain criteria then I'll display it in via the control.

I want the database table to send the updated record(s) to an object that analyzes the record(s) and determines if it should displayed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900