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

QueryCellInfo Event

Thread ID:





46793 Jul 20,2006 03:43 PM UTC Jul 21,2006 06:53 AM UTC WinForms 1
Tags: GridControl
Asked On July 20, 2006 03:43 PM UTC


In QueryCellInfo I am assigning the CellValue based on the underlying datasource like the following line

e.Style.CellValue = m_document[e.RowIndex - 1, e.ColIndex];

In this case it grid is paining the values quickly.

Here there is a one to one mapping between the e.ColIndex and the document column.
But the requirement is that the user can choose the cols to be displayed on the screen as they want. So I maintained the preferred cols in an ArralyList. Now the one to one mapping between my datasouce and the grid cols will be broken and will get wrong data as cellValue.

To avoid this i modifed the QueryCellInfo event like

if(DisplayColumns != null && DisplayColumns.Count > 0)
col = Convert.ToInt32(DisplayColumns[e.ColIndex]);
col = e.ColIndex ;
e.Style.CellValue = m_document[e.RowIndex - 1, col];

This are working fine but taking long time to paint the values...

Give me some suggestion to avoid time taking to paint the rows.


Administrator [Syncfusion]
Replied On July 21, 2006 06:53 AM UTC

Hi Ravi,

Please try the below sample that works fine for your purpose, in displaying the correct cellvalue for the appropriate columns in the grid, when the columns are chosen by the user. I dont see the long delay which you have mentioned, with your code.

Here is a sample

Let me know if this helps.


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