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.

Number of calls to QueryCellInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

69698 Nov 8,2007 09:29 AM Nov 8,2007 12:44 PM Windows Forms 3
loading
Tags: GridControl
Qingde Shi
Asked On November 8, 2007 09:29 AM

Hi,

I noticed that the QueryCellInfo event in virtual grid were being called about two times of number of cells in one refresh. in other words, QueryCellInfo was being called twice for every cell.
Is this normal?

Thanks,

Q

Administrator [Syncfusion]
Replied On November 8, 2007 11:16 AM

If you are calling grid.Refresh, then QueryCellinfo will be hit twice per cell as that method does more than just force a redraw.

If you use Invalidate/Update calls, then I think that QueryCellInfo will only be hit once for each cell.

this.gridControl1.Invalidate();
this.gridControl1.Update();


Qingde Shi
Replied On November 8, 2007 12:13 PM

Clay,

Thanks. It seems the ResetVolatileData() has to be called too to reset Rows and Columns.

and it also seems that if only call ResetVolatileData() and Invalidate(), it also can achieve a refresh effect.

Am I right? Is there any potential problems for this?

Thanks,

Q


>If you are calling grid.Refresh, then QueryCellinfo will be hit twice per cell as that method does more than just force a redraw.

If you use Invalidate/Update calls, then I think that QueryCellInfo will only be hit once for each cell.

this.gridControl1.Invalidate();
this.gridControl1.Update();



Administrator [Syncfusion]
Replied On November 8, 2007 12:44 PM

If you change the RowCount or the ColCount, then you will have to call grid.ResetVolatileData to see those changes take effect.

Here is a minimal sample showing QueryCellInfo being hit in the output window.



WindowsApplication29_3.zip

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.

;