1

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;
}
  • 2
    Please show your code. – RAS Dec 15 '17 at 19:20
  • Definitely show your code. DevExpress have some complex methods but they work very well.. Also, please make more question more clear....See this link https://documentation.devexpress.com/WindowsForms/115548/Controls-and-Libraries/Data-Grid/Appearance-and-Conditional-Formatting – Grantly Dec 15 '17 at 21:56

1 Answers1

0

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;
            }
}