如何按需加载网格视图数据 [英] How to load grid view data on demand

查看:86
本文介绍了如何按需加载网格视图数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我有一个具有网格视图的起始页。

这个gridview在页面加载时显示来自数据库的大约1000条记录。

And这大大增加了加载时间。

因此,我已经考虑过在gridview中显示记录中的记录。这意味着在开始时,只从数据库中提取前100条记录。在网格视图中向下滚动,下一个记录被拉出并显示。

我发现了一些使用Silverlight和WPF的方法。

这可以用AJAX完成吗? div class =h2_lin>解决方案

然后你想去自定义分页

查看此链接

有效地对大量数据进行分页

(C#)
[ ^ ]



它可能有帮助...


MSDN始终是一个好的起点: ASP.NET 2.0的GridView示例:对GridView数据进行分页和排序 [ ^ ]


http://www.aspsnippets.com/Articles/Load-on-demand-data-in-GridView-on-scroll-using -ASPNet-and-jQuery-AJAX.aspx [ ^ ]


In my project, I have a start page that has a grid view.
This gridview displays around 1000 records from the database when the page is loaded.
And this has drastically increased the load time.
So, I have thought of displaying the records in the gridview on deamand.This means that in the begining, only the first 100 records are fetched from the database and when scrolled down in the grid view, the next records are pulled out and displayed.
I found a few approaches using Silverlight and WPF.
Can this be done using AJAX?

解决方案

Then you want to go for custom paging
Check this link
Efficiently Paging Through Large Amounts of Data
(C#)
[^]

It may helps...


MSDN is always a good place to start: GridView Examples for ASP.NET 2.0: Paging and Sorting the GridView's Data[^]


http://www.aspsnippets.com/Articles/Load-on-demand-data-in-GridView-on-scroll-using-ASPNet-and-jQuery-AJAX.aspx[^]


这篇关于如何按需加载网格视图数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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