GridView根据获取的值显示不同值

在RowDataBand里:
if (e.Row.Cells[2].Text=="1")
{
  e.Row.Cells[2].Text = "允许";
}
else
{
  e.Row.Cells[2].Text = "不允许";
  //e.Row.Cells[2].Visible = false;
}
posted @ 2008-02-07 13:17  一个IT愤青  阅读(238)  评论(0)    收藏  举报