新建了一个DataRow,然后添加到Table中,为了保证顺序,对Table进行了排序
table.Rows.Add(row);
table.DefaultView.Sort = "AID DESC";
然后添加以后马上绑定,没有问题。
在点击第二次查询的时候调用方法
this.GridPage1.BindGrid(grvReport, data.DefaultView, data.Rows.Count, currentPage, currentPageSize);
为何查询以后新添加的数据在最后
新添加的内容在后面.?
table.Rows.Add(row);
table.DefaultView.Sort = "AID DESC";
然后添加以后马上绑定,没有问题。
在点击第二次查询的时候调用方法
this.GridPage1.BindGrid(grvReport, data.DefaultView, data.Rows.Count, currentPage, currentPageSize);
为何查询以后新添加的数据在最后
新添加的内容在后面.?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货