In DevExpress Grid, how can we change color code of values in bold in summary section after grouping? Please refer snap

247 Views Asked by At

After GROUP BY, which method can be used for color coding of summary in grid view? I am able to make changes in color code for value under grid at specific level of record, but for cumulative value, I am having difficulties.

Link for Image

Please find link for image and highlighted part in blue for timestamps for Visit Count row, which need to be color coded.

protected void ASPxGridView1_HtmlDataCellPrepared(object sender,
    DevExpress.Web.ASPxGridViewTableDataCellEventArgs e) {
    if (e.DataColumn.FieldName != "Budget") return;
    if (Convert.ToInt32(e.CellValue) < 100000)
        e.Cell.BackColor = System.Drawing.Color.LightCyan;
}
1

There are 1 best solutions below

0
On

This might help you....

 protected void ASPxGridView1_HtmlFooterCellPrepared(object sender, ASPxGridViewTableFooterCellEventArgs e)
        {
            if (e.Column is GridViewDataColumn  )((GridViewDataColumn)e.Column).FieldName == "Freight")
            {
                e.Cell.ForeColor = Color.Blue;
                e.Cell.Font.Bold = true;
            }
}