protected void GridView2_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.Cells.Count >= 4)
{
e.Row.Cells[0].Visible = false;//设置第1列为隐藏列
e.Row.Cells[1].Visible = false;//设置第2列为隐藏列
e.Row.Cells[2].Width = 150;
{
if (e.Row.Cells.Count >= 4)
{
e.Row.Cells[0].Visible = false;//设置第1列为隐藏列
e.Row.Cells[1].Visible = false;//设置第2列为隐藏列
e.Row.Cells[2].Width = 150;
e.Row.Cells[3].Width = 150;
}
}