magritton
5/1/2014 - 6:21 PM

Sets the cell color of a Dev Express based on values from other cells

Sets the cell color of a Dev Express based on values from other cells

if (e.DataColumn.FieldName == "CUSTOMER_NAME")
            {
                int intAmt = Convert.ToInt32(e.GetValue("_60_Days"));
                if (intAmt > 0)
                    e.Cell.BackColor = System.Drawing.Color.Yellow;
                string strDate = Convert.ToString(e.GetValue("FollowUpDate"));
                if(strDate != "")
                    e.Cell.BackColor = System.Drawing.Color.LightGreen;
            }