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.
Unfortunately, activation email could not send to your email. Please try again.

Asynchronous created control throws InvalidOperationException

Thread ID:

Created:

Updated:

Platform:

Replies:

90743 Oct 15,2009 12:16 AM Oct 26,2009 12:48 AM Windows Forms 2
loading
Tags: Grouping
Michael Merwald
Asked On October 15, 2009 12:16 AM

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

Michael Merwald
Replied On October 22, 2009 09:21 AM

Hello,

are there any news concerning my problem?

Regards,
Michael

Rajadurai C [Syncfusion]
Replied On October 26, 2009 12:48 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;