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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Virtual Grid and Painting

Thread ID:

Created:

Updated:

Platform:

Replies:

2987 Feb 24,2003 09:00 PM UTC Feb 28,2003 09:03 AM UTC WinForms 6
loading
Tags: GridControl
Sue Harris
Asked On February 24, 2003 09:00 PM UTC

Hi, I'm using a virtual grid to displays some data. I've noticed however, that the grid requeries the data after the grid get painted. So if I pass another window accross the grid form, the values are requeried. Because my querycellinfo event can take a fairly large (relatively speaking) amount of time, this can make the grid repaint look very jerky. Is there any way for me to determine whether the cell has already been queried and prevent this requerying? Thanks, Sue

Administrator [Syncfusion]
Replied On February 24, 2003 11:14 PM UTC

I looked into that and it is actually wrong that it gets requeried so often. There was a unnecessary direct call to QueryCellInfo instead of getting it from the volatile data cache. We fixed that now. So, with the next patch that should be no issue any more. Stefan

Sue Harris
Replied On February 25, 2003 12:27 AM UTC

> We fixed that now. So, with the next patch that should be no issue any more. Excellent. Do you have any idea when the next patch will come out (few days/weeks/months)? Thanks. Sue

Administrator [Syncfusion]
Replied On February 25, 2003 07:19 AM UTC

Days. It should be in the 5.2 release out in the next few days.

Stephen Foster
Replied On February 28, 2003 01:38 AM UTC

I notice that this occurs even when the mouse is moved over a cell (causing queryCellInfo to fire very very often. Is this corrected by this fix? And, there are times where I've seen negative row/col values (usually -1). Is this expected? Thanks in advance.

Sue Harris
Replied On February 28, 2003 02:48 AM UTC

Hi, I've downloaded the new 1.5.2 Grid and I'm still getting the QueryCellInfo repeating when the control repaints. Did the fix not make it into the release? Thanks, Sue

Administrator [Syncfusion]
Replied On February 28, 2003 09:03 AM UTC

Stephen - The row or col = -1 means that the style request is for a columnstyle (when row = -1 and col > -1) or for a rowstyle (when row >0 and col = -1). QueryCellInfo (in version 1.5.2) will be hit once as your mouse enters the cell. It may also be hit again if garbage collection by the framework happens. But generally, you should count on the hit as it enters teh cell. This is different from teh earlier version where the QueryCellInfo was hit with each MouseMove even if you were in the same cell. Sue - The change that made it into 1.5.2 is the one I described above, drastically reducing the QCI hits as you move the mouse. The problem you describe, repainting as you uncover teh grid, I am not sure there is a way to avoid this in general. Soppose teh external datasource has changed while the grid was covered. Hitting QCI lets the uncovered grid dynamically show these changes. Maybe Stefan will be able to handle this in some way, but it is a little tricky. If your QCI code is time consuming, you might consider bufferring the time consuming data, and then just getting it from the buffer unless the buffer needs to be refreshed. I'll try to post a sample later in the next day or so.

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.

Warning Icon 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.Close Icon

;