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.

GridControl BeginUpdate + Application.DoEvents

Thread ID:

Created:

Updated:

Platform:

Replies:

105898 Nov 27,2012 05:09 AM Nov 28,2012 06:22 AM Windows Forms 3
loading
Tags: GridControl
ian bradley
Asked On November 27, 2012 05:09 AM

If Application.DoEvents is called when a grid has had BeginUpdate called the app freezes. 

I found a similar thread which seemed to describe what I'm seeing, but was from 2002 :/

This is 9.4.2 Winforms GridControl.

Arun Kumar V [Syncfusion]
Replied On November 27, 2012 08:44 AM

Hi Ian,

Thanks for your interest in Syncfusion products.

Query:

App freezes when the grid has BeginUpdate.

I am afraid we could not able to clearly get your question, so I had provided answer for what I had understood. App freezes when using BeginUpdate. Please refer to the following UG link to better understand of BeginUpdate. It would be great if we get a sample file or method which seems to cause the reported problem had been found (These details will help us provide you better solution since we could not able to clearly identify your query).

UgLink:http://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/Grid/default.htm#!documents/thegridcontrolindexertechnique.htm

Please let me know if you have any other concerns.

Regards,

Arun.


ian bradley
Replied On November 27, 2012 11:38 AM

I'll try and provide a reproduceable case. It's complicated as the grid is virtualised and there are a lot of other things going on.

This thread here describes the problem pretty well (from 2002!!)


grid.BeginUpdate();
...
Application.DoEvents(); <-- hangs
...
Grid.EndUpdate();

Arun Kumar V [Syncfusion]
Replied On November 28, 2012 06:22 AM

Hi Ian,

Thanks for the update.

Query:

App freezes when the grid has beginupdate.

We will wait until we get a reproducible sample file from you side.

Notes:

Please refer to the following complete forum discussion of what you had mentioned about for full details.

Suggestion:

A simple way to work around this problem is to call grid.CancelUpdate before your call to DoEvents. And if you want, you could call grid.BeginUpdate afterwards.

Forum Link: http://www.syncfusion.com/support/forums/grid-windows/1808

Please let me know if you have any other concerns.

Regards,

Arun.


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.

;