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.

Virtual Grid Refresh

Thread ID:





25738 Mar 4,2005 11:00 AM Mar 4,2005 05:37 PM Windows Forms 2
Tags: GridControl
A. Chakravarty "Chak"
Asked On March 4, 2005 11:00 AM

I have a virtual grid which is populated solely through QueryCellInfo. Everytime QueryCellInfo is triggered, rows and columns are checked to determine what the properties(color, celltype etc.) are and what kind of data will be put into that cell. Apart from the usual times when QueryCellInfo is triggered, I specifically call currentcell refresh() when a user changes a cell and thsi works fine. However, I have another callback that gets triggered when data arrives from another source and this happens at a very rapid rate. When I call current cell refresh or refreshrange or even try to refresh the grid, I start noticing problems with the grid painting and ultimately I end up with an out of range exception. My questions is, why would these 2 callbacks behave diffrenetly, even though they call the same refresh methods ? I am sure I am missing something here. Any help or pointers will be much appreciated. Regards Chak

Administrator [Syncfusion]
Replied On March 4, 2005 11:20 AM

Are you using multiple threads? If so, you need to make sure all accesses into the grid are done on the thread that created the grid. Not doing this will lead to problems like you described. Here is a KB link on using multiple threads with a GridControl. http://www.syncfusion.com/Support/article.aspx?id=572

A. Chakravarty "Chak"
Replied On March 4, 2005 05:37 PM

Thanks again. That was it. I was using the multithreaded version of a DLL. Once I coded around the multithreaded callbacks, it works smoothly now. Regards Chak


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.