Life Since 1985

Happy Hacking

更改gridview的列标题

 

GridViewRow HeaderRow = pumpGV.HeaderRow;
HeaderRow.Cells[0].Text = "配注间ID";
HeaderRow.Cells[1].Text = "站库ID";
HeaderRow.Cells[2].Text = "所属水井ID";
HeaderRow.Cells[3].Text = "配注间名称";

 

gridview数据源绑定

 

gridview1.DataSource = object;

gridview1.DataBind();