We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Asynchronous created control throws InvalidOperationException

Hello,

I have a problem with a dynamically created GridGroupingControl.
Please take a look at the attached demo solution (VS2005).

There is a Windows form, which invokes a class library asynchronously using BeginInvoke. The control returned by EndInvoke should be visible in the main form and needs to be set. This works with the .NET controls TextBox and DataGridView, but not with the GridGroupingControl (InvalidOperationException, cross thread call on "tableControl1").

Your assistance is highly appreciated.

Thanks in advance,
Michael



AsynchronousCreatedControlThrowsInvalidOperationException_e407b962.zip

2 Replies

MM Michael Merwald October 22, 2009 01:21 PM UTC

Hello,

are there any news concerning my problem?

Regards,
Michael


RC Rajadurai C Syncfusion Team October 26, 2009 04:48 AM UTC

Hi Michael,

Thanks for your interest in Syncfusion Products.

You can try to make use of the following setting to avoid the Cross-thread exception.

Control.CheckForIllegalCrossThreadCalls = false;


Regards,
Rajadurai

Loader.
Live Chat Icon For mobile
Up arrow icon