I have an UltraTabControl with several tabs on it. When the Shown event is fired on my form it starts two threads, each grabs some data from the database and displays it in a corresponding UltraGrid (which are on different tabs). One thread executes very quickly (1 second or so), the other can take quite a while (20-30 seconds) . I have wired up an event handler for RowDoubleClick on both datagrids (using the designer, so this should get setup in InitializeComponents in the constructor?). However, while the second thread is still running getting the data from the database I can double click all day on the first UltraGrid and the double click event never goes off until the second thread finishes?
Why is this and how can I fix it?
Hello cjhunter,
The 'Microsoft Developer Network' notes that Windows Forms controls are not thread-safe, which means that NetAdvantage for Windows Forms controls are also not thread-safe.
You could read the following article which might help you: http://blogs.infragistics.com/winforms/articles/ui-thread-marshaling-in-the-model-layer.aspx.
Please do not hesitate to contact us if you need any additional assistance.