Hi Dave,
Thank you for your interest in Syncfusion Products.
You have to override the autoformat in order to change properties of cells at runtime. Please use below code snippet to achieve this:
[C#]
protected void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AnyRecordFieldCell)
{
if ((e.TableCellIdentity.Column.Name == "Header0") && (e.Style.CellValue.ToString() == "2,0"))
{
//Override autoformat
e.Style.CssClass = "MyGreenTextStyle";
}
}
}
[CSS]
.MyGreenTextStyle
{
background-color:Lime;
}
Please refer the sample in the below link which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Web/6.1.0.34/72305/main.htmPlease try this and let me know if this helps.
Thanks,
Melba