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
close icon

Update grid with invoke (other thread) slow

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

1 Reply

AD Administrator Syncfusion Team September 4, 2005 11:20 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon