Like the most Windows Forms controls, the GridControl can be used in multithreaded applications as long as you use the Invoke/InvokeRequired techniques to make sure that all the interactions with the Grid is done on the thread that created it.
The requirement for using multiple threads is that every UI control must interact with the UI thread that created it. The simple way to do this is to use InvokeRequired to test whether you are on the wrong thread.
So, anytime you access the Grid from within a method that may have been called from the non-UI thread, you must use the grid.InvokeRequired to test whether this call is coming on the UI thread. If not, then you must call grid.Invoke on a new delegate to force the call to be on the UI thread.
You can refer to the attached sample that illustrates how to use these ideas with the Grid.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|