vbagcl 你好,
我使用下列代码绑定数据耗时 3 秒,请楼主参考:
- protected void Page_Load(object sender, EventArgs e)
- {
- DataTable test = new DataTable();
- test.Columns.Add("列一", typeof(System.Int16));
- test.Columns.Add("列二", typeof(System.Int16));
- test.Columns.Add("列三", typeof(System.Int16));
- test.Columns.Add("列四", typeof(System.Int16));
- test.Columns.Add("列五", typeof(System.Int16));
- test.Columns.Add("列六", typeof(System.Int16));
- test.Columns.Add("列七", typeof(System.Int16));
- test.Columns.Add("列八", typeof(System.Int16));
- for (int i = 0; i < 1000; i++)
- {
- test.Rows.Add(i,i,i,i,i,i,i,i);
- }
- this.C1GridView1.AllowPaging = true;
- this.C1GridView1.PageSize = 200;
- this.C1GridView1.DataSource = test;
- this.C1GridView1.DataBind();
复制代码
所以没有重现问题,建议楼主发 Demo 到论坛调试。 |