62,269
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string str = e.Row.Cells[4].Text;
switch (str)
{
case "0":
e.Row.Cells[4].Text = "已借出";
break;
case "1":
e.Row.Cells[4].Text = "可借";
break;
case "3":
e.Row.Cells[4].Text = "修复中";
break;
}
}
}