Hi All,
OK I am feeling somewhat stupid at the moment. I have a Windows forms app with a datagrid on it. In the menu I have an option to allow the user to resync the database with my main SQL database. It uses merge replication and it all works fine. The problem that I am having is stupidly simple by comparison to the task of syncing the data. Once the syncronisation has finished, I need the datagrid to repopulate itself with any changed data. 2 minute job I thought, an hour later I still am having issues!
There are some threads discussing what I think is the same issue but people seem to be missing the stick and talking about setting the datasource to null and then reconnecting it. Well that works but the RadGrid seems to then add in all of the hidden ID columns etc again.
Surely there is a command like Refresh (what does that do anyway? does it just redraw the grid?) that works on this. On Asp.Net Refresh does as you'd expect and refreshes the data in the grid.
All I want to do is tell the grid to reload it's data!
Any ideas anyone?
Regards,
Jon
OK I am feeling somewhat stupid at the moment. I have a Windows forms app with a datagrid on it. In the menu I have an option to allow the user to resync the database with my main SQL database. It uses merge replication and it all works fine. The problem that I am having is stupidly simple by comparison to the task of syncing the data. Once the syncronisation has finished, I need the datagrid to repopulate itself with any changed data. 2 minute job I thought, an hour later I still am having issues!
There are some threads discussing what I think is the same issue but people seem to be missing the stick and talking about setting the datasource to null and then reconnecting it. Well that works but the RadGrid seems to then add in all of the hidden ID columns etc again.
Surely there is a command like Refresh (what does that do anyway? does it just redraw the grid?) that works on this. On Asp.Net Refresh does as you'd expect and refreshes the data in the grid.
All I want to do is tell the grid to reload it's data!
Any ideas anyone?
Regards,
Jon