代码
1.直接在GridView中修改
GridView1.DataSource
= ds.Tables[0].DefaultView; GridView1.DataBind();
GridView1.HeaderRow.Cells[
0].Text = "ID"; GridView1.HeaderRow.Cells[1].Text = "班级";

2修改数据源 dataView.Table.Columns[
0].ColumnName = "列1";

 

相关文章:

  • 2022-01-29
  • 2021-09-09
  • 2022-12-23
  • 2021-06-17
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-23
  • 2021-11-17
  • 2021-09-02
相关资源
相似解决方案