您的位置:首页 > 编程语言 > ASP

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

2010-11-25 11:20 597 查看
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