protected void ASPxGridView1_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e)
        {
            
if (e.RowType != DevExpress.Web.ASPxGridView.GridViewRowType.Data) return;
            
int s = (int)e.GetValue("TeaID");
            
if (s > 1001)
                e.Row.ForeColor 
= Color.Red;
        }

 

        protected void ASPxGridView1_HtmlDataCellPrepared(object sender, ASPxGridViewTableDataCellEventArgs e)
        {
            
            
//int s = (int)e.GetValue("TeaID");
            
//if (s > 1001)
            
//    e.Cell.ForeColor = Color.Red;
        }

相关文章: