前台页面对Gridview增加事件 OnRowDataBound="GridView1_RowDataBound"
protected
void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[4].Text.Trim() == " ") e.Row.Cells[4].Text = "未签核"; else if (e.Row.Cells[4].Text.Trim() == "AP") { e.Row.Cells[4].Text = "被否决"; } else { e.Row.Cells[4].Text = "使用中"; } } }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2023-03-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2022-01-06
  • 2021-12-17
  • 2022-02-28
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案