03 2009 档案
GRIDVIEW添加自定义表头
摘要:protected void GVcaijuemian_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header) { //创建一个GridViewRow,相当于表格的 TR 一行 ... 阅读全文
posted @ 2009-03-24 15:07 D.Henry 阅读(918) 评论(0) 推荐(0)
多个GRIDVIEW同时导入到一个EXCEL文件中
摘要:HttpContext.Current.Response.Clear(); Response.Buffer = false; HttpContext.Current.Response.Charset = "GB2312"; HttpContext.Current.Response.ContentEncoding = System.Text.Encod... 阅读全文
posted @ 2009-03-24 14:58 D.Henry 阅读(334) 评论(0) 推荐(0)
在类中使用SERVER
摘要:添加应用System.Web; 然后System.Web.HttpContext.Current.Server.UrlEncode即可,来对中文传值编码 阅读全文
posted @ 2009-03-24 14:36 D.Henry 阅读(227) 评论(0) 推荐(0)
在BUTTON中触发GRIDVIEW的方法
摘要:很简单,BUTTON的CLICK事件里面写一个GRIDVIEW的绑定事件就OK! 阅读全文
posted @ 2009-03-24 14:34 D.Henry 阅读(265) 评论(0) 推荐(0)