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

QueryCellStyleInfo is not called for grouped tables

Thread ID:





83577 Jun 26,2009 12:41 AM UTC Jun 26,2009 01:48 PM UTC ASP.NET Web Forms (Classic) 2
Tags: GridGroupingControl
Vasili Sviridov
Asked On June 26, 2009 12:41 AM UTC

I have a grouping grid, and I'd like to apply custom formatting to the cells. It works for the table when no grouping is done. As soon as any grouping is applied - all the columns in the resulting sub-tables are not styled. The event handler is not even called for them.

Do I have to assign a delegate to those groups during binding or is there some option to cascade that delegate to all sub-tables in the grid?

Thank you.

Vasili Sviridov
Replied On June 26, 2009 12:55 AM UTC

my delegate assignment did not happen after postback - hence no rendering

Rekha P [Syncfusion]
Replied On June 26, 2009 01:48 PM UTC

Hi Vasili,

Thank you for your interest in Essential Grid.

Please find a simple sample illustrating the event triggering of QueryCellStyleInfo with the grouped tables and the reported issue may cause due enabling the QueryCellStyleInfo event within !IsPostBack condition.

Code Snippet:
protected void Page_Load(object sender, EventArgs e)
if (!IsPostBack)
this.GridGroupingControl1.DataSource = GetData();
this.GridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(GridGroupingControl1_QueryCellStyleInfo);

void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell ||
e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell ||
e.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell)
e.Style.Borders.All = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.DashDotDot, Color.Blue);
e.Style.TextColor = Color.Brown;
e.Handled = true;


In the above sample, the cell text color and its border style will be sustained through grouped columns. Please let me know if this solves your issue or could you please try reproducing it in the above sample and send us the modified sample so that we could sort out the cause of the issue and provide you a solution?



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

or the page will be automatically redirected to 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