Code
1protected void ASPxGridView1_CustomColumnDisplayText(object sender, ASPxGridViewColumnDisplayTextEventArgs e)
2 {
3 if(e.Column .FieldName =="TeaJob")//判定哪一列
4 {
5 string s = ASPxGridView1.GetRowValues(e.VisibleRowIndex, "TeaJob").ToString();
6 if (s == "讲师")
7 e.DisplayText = "jiangshi";
8 }
9
10 }
1protected void ASPxGridView1_CustomColumnDisplayText(object sender, ASPxGridViewColumnDisplayTextEventArgs e)
2 {
3 if(e.Column .FieldName =="TeaJob")//判定哪一列
4 {
5 string s = ASPxGridView1.GetRowValues(e.VisibleRowIndex, "TeaJob").ToString();
6 if (s == "讲师")
7 e.DisplayText = "jiangshi";
8 }
9
10 }