摘要:
1.在ASPX页面下加一个隐藏域 <asp:HiddenField ID="HidSign" runat="server" />2.cs代码 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateSign(); } } static string rp_GoodsEdit; public void UpdateSign() ... 阅读全文
摘要:
效果如下图,表头13-1 到13-11 也是动态绑定的。 protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header) { TableCellCollection tcHeader = e.Row.Cells;//获取表头行的所有单元 tcHeader.Clear();//清空原有的表头信... 阅读全文