我应该如何在数据网格中的行中添加新的数据集 [英] How should i append the rows in my datagrid with new dataset

查看:77
本文介绍了我应该如何在数据网格中的行中添加新的数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在开发一个页面,我必须在网格中向用户显示数据,这样,我首先必须绑定10条记录,然后在用户单击时我想将结果追加到20条而不绑定以前的结果,这意味着仅记录11至20左右应附加到网格.

例如:
首先,我想显示10条记录,并在用户单击时再次显示10条记录,因此总记录将为20,但仅绑定10条记录,并使用前10条记录


谢谢
Pradeep Jadhav

Hello,
i''m developing a page where i have to show users data in grid, in such way that first i have to bind the 10 records then on user click i want to append the result to 20 without binding the previous result that means only records fro 11 to 20 should be appended to grid.

example:
first i want to display 10 records and on user click i want to again display 10 records so total records will be 20 but binding only 10 and using previous 10


Thanks
Pradeep Jadhav

推荐答案

使用 DataTable.Merge [^ ]方法.

检查此链接.

http://asp-net-example. blogspot.com/2011/05/how-to-use-datatable-merge-method-in.html [
Use DataTable.Merge[^] method.

Check this link.

http://asp-net-example.blogspot.com/2011/05/how-to-use-datatable-merge-method-in.html[^]


我想你是在gridview中寻找分页.
使用gridview的分页功能,该功能易于实现.
I guess you are looking for Paging in gridview.
Use gridview''s Paging functionality, its easy to implement.


这篇关于我应该如何在数据网格中的行中添加新的数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆