Life Since 1985

Happy Hacking
gridview数据源绑定

更改gridview的列标题

david kei posted @ 2011年3月14日 13:12 in DotNet , 1623 阅读

 

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

 

Emma 说:
2022年12月08日 03:21

The column headers of a gridview can be changed by accessing the gridview's column collection and real estate for sale Southlake setting the header text for each column. From there, you can change the header text and other properties of the columns. This can be done in the code behind or in the markup.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter