修改列名
GridView1.DataSource = dt;? GridView1.DataBind();? 先绑定,再修改。GridView1.AutoGenerateColumns = false;? GridView1.Columns[0].HeaderText ="ID";? GridView1.Columns[1].HeaderText ="姓名";?