I have a wingrid that is bound to a datatable. I create a new asynchronous thread and from that thread make a remote server call passing the datatable. When the server call is completed the wingrid automatically refreshes to show any changes. However, since this is not being done on the main UI thread of the program, we will often get an error where the control goes whilte and a big red X appears in it.
Is there a flag to set the wingrid to not automatically upate when the datasource changes? I would like to turn it off before the remote server call and turn it on again after I am back on the main thread.
Hello Bravo,
braro said:Is there a flag to set the wingrid to not automatically upate when the datasource changes?
- http://msdn.microsoft.com/en-us/library/windows/desktop/ms686927(v=vs.85).aspx
More general information about this topic you could find at :
http://msdn.microsoft.com/en-us/library/hyz69czz.aspx
Please let me know if you have any questions