标签:ar on ad ef as type ca view ie
protected void gvInfo_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
switch (id)
{
case "1":
e.Row.Cells[12].Visible = false;
e.Row.Cells[13].Visible = false;
gvInfo.HeaderRow.Cells[12].Visible = false;
gvInfo.HeaderRow.Cells[13].Visible = false;
break;
case "6":
e.Row.Cells[11].Visible = false;
e.Row.Cells[12].Visible = false;
gvInfo.HeaderRow.Cells[11].Visible = false;
gvInfo.HeaderRow.Cells[12].Visible = false;
break;
default:
e.Row.Cells[11].Visible = false;
e.Row.Cells[13].Visible = false;
gvInfo.HeaderRow.Cells[11].Visible = false;
gvInfo.HeaderRow.Cells[13].Visible = false;
break;
}
}
}
标签:ar on ad ef as type ca view ie
原文地址:http://www.cnblogs.com/ahao214/p/4035657.html