梓骏

导航

2012年10月15日 #

根据Gridviwe某列的值显示不同效果 空格效果 背景色效果

摘要: if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView row = (DataRowView)e.Row.DataItem;//当前行的数据 //if (e.Row.Cells[1].Text.StartsWith("51"))某列以值开头的 if (e.Row.Cells[1].Text.Length == 4) e.Row.Cells[2].Text = e.Row.Cells[2].Text; if (e.Row.Cells[1].Text.Length == 6) e.Row.Cells[2].T 阅读全文

posted @ 2012-10-15 10:15 梓骏 阅读(223) 评论(0) 推荐(0) 编辑