在RowDataBand事件里添加如下代码:

(假如GridView第四列为性别列)
if (e.Row.Cells[3].Text=="0")
  e.Row.Cells[3].Text = "男";
else
  e.Row.Cells[3].Text = "女";

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-25
  • 2021-07-05
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-12-06
  • 2021-06-23
相关资源
相似解决方案