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

performance Issue while printing virtual grid

Thread ID:





91556 Nov 24,2009 06:47 AM UTC Nov 24,2009 08:21 AM UTC WinForms 1
Tags: GridControl
Asked On November 24, 2009 06:47 AM UTC

Hi Experts,

Our project is using syncfusion virtual grid to display/print a large number of image files.

We only override callback QueryCellInfo() which helps to load a specific image (as background image) for each cell.

Below method is invoked while printing:

OnDrawClientRowCol(int topRow, int leftCol, int bottomRow, int rightCol, Graphics g, Rectangle rectClip);

The problem is that only after every cell has been visited we can figure out the total height for Rectangle rectClip. System will set a default height for each cell.

Here is a workaround:
1. update each cell's height in QueryCellInfo()
2. after OnDrawClientRowCol() finished, system will check if gridMainControl's height got changed or not.
3. if changed, OnDrawClientRowCol() need to be invoked again.

So, OnDrawClientRowCol() will be invoked many times which causes a poor performance.

If anyone can help me...Is there any advanced api can make it better?

Lingaraj S [Syncfusion]
Replied On November 24, 2009 08:21 AM UTC

Hi Peng,

Thank you for your interest in Syncfusion products.

If you want to show the image in cell, then please try using Image cell type QueryCellStyleInfo to achieve this functionality. And ImageSizeMode property is used to set the image drawing option in cell.

Refer the sample form below link:

Please let me know if you have any queries.

Lingaraj S.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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