阅读背景:

aspxGridview 根据单元格值得不同,设置单元格字体的颜色(设置和读取值)

来源:互联网 
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");
            }
        }protected void ASPxGridView1_HtmlRowCreated(obje



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: