摘要: protected void Button1_Click(object sender, EventArgs e) { Export("application/ms-excel", "Nor.xls"); } private void Export(string FileType,string FileName) { Response.Charset = "GB2312"; Response.Con... 阅读全文
posted @ 2009-07-20 17:03 iZiYue 阅读(176) 评论(0) 推荐(0)
摘要: 在GridView控件中增加DataBound事件,for (int i = 0; i <= GridView1.Rows.Count - 1; i++) { DataRowView mydrv = myds.Tables["AllUsers"].DefaultView[i]; int iDate = Convert.ToInt32(mydrv["UserId"]); if (Convert... 阅读全文
posted @ 2009-07-20 13:59 iZiYue 阅读(557) 评论(0) 推荐(0)
摘要: 用css即可为GridView控件增加滚动条,style="overflow-y:scroll;width:***px;height:***px;“ 阅读全文
posted @ 2009-07-20 10:10 iZiYue 阅读(527) 评论(0) 推荐(0)
摘要: 在Page_Load事件中给GridView控件增加属性,添加CSS样式来达到让GridView换行的目的。//正常换行 GridView1.Attributes.Add("style", "world-break:keep-all;word-wrap:normal"); //下面是自动换行 GridView1.Attributes.Add("style", "word-break:break-a... 阅读全文
posted @ 2009-07-20 08:35 iZiYue 阅读(403) 评论(0) 推荐(0)
ChinaHDTV.ORG