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;
}
}http://files.syncfusion.com/support/GGC.Web/7.2.0.37/F83577/main.htmIn 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?
Thanks,
Rekha