ASPxGridview根据条件将符合条件的行颜色改变

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

你可能感兴趣的:(object)