protected void ASPxGridView1_HtmlRowCreated(object sender,DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
        {
            if (e.RowType != DevExpress.Web.ASPxGridView.GridViewRowType.Data) return;

            string errorPercent = e.GetValue("ErrorPercent").ToString();
            errorPercent = errorPercent.Substring(0, errorPercent.Length - 1);
            float errorPercentInt = float.Parse(errorPercent);
            if (errorPercentInt >= 3 || errorPercentInt<=-3)
            {
                e.Row.Cells[11].Style.Add("color", "Red");
            }
        }

 

posted on 2018-10-30 00:01  qqhfeng16  阅读(299)  评论(0编辑  收藏  举报