62,264
社区成员
发帖
与我相关
我的任务
分享GridView1.DataSource=dt;
GridView1.DataBind();
//后面加上
for(int i=0;i<GridView1.Rows.Count;i++)
{
Button tn=(Button)GridView1.Rows[i].FindControl("退房按钮ID");
if(dt.Rows[i]["退房列"].ToString()=="退房")
{
tn.Visible=false;
}
}