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.

Update grid with invoke (other thread) slow

Thread ID:

Created:

Updated:

Platform:

Replies:

34155 Sep 4,2005 06:21 PM Sep 4,2005 07:20 PM Windows Forms 1
loading
Tags: GridControl
Rene Balvert
Asked On September 4, 2005 06:21 PM

Hi, We are loading a dataset in another thread and then update the grid. We use InvokeRequired -> Invoke to update the grid. This is very slow, if we do it directly from our GUI thread the grids updates within a fraction of a second. (btw InvokeRequired is alway true as we are always calling UpdateGrid (DataSet ds) from our background thread). What is wrong here? Regards, Rene

Administrator [Syncfusion]
Replied On September 4, 2005 07:20 PM

Invoke is a synchronous call. So, if your thread is constantly, frequently calling Invoke, you can back things up as the calls overrun each other. You could try setting a flag and not initiate another Invoke while there is one in process.

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.

;