I have a DataGridView using DataTable as my datasource. Now my problem is how do I keep my datatable synchronised to our server database? Like for example somebody tried to update the database so automatically my datatable will be updated too. Without using iteration. Is this possible?
Share
There is nothing automatic in software. We need to automate things that seems to be automatic. You can use caching mechanism for your solution. The datatable can be filled using a cache. The cache can be made invalid on change of underlying tables in the database. And upon invalidating, the datatable shall have to be recreated again and so the gridview shall have to be updated.
If you are using ASP.NET, you can refer the MSDN article on the same here: http://msdn.microsoft.com/en-us/library/ms972379.aspx