将数据加载到Gridview [英] Loading data to Gridview

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

问题描述

嗨朋友们,



我在Gridview中加载了超过20K的数据,并在gridview中加载了JQuery过滤器和排序选项。

SQL查询以1.sec返回值。

但是要将数据加载到gridview,需要更多时间。



现在我正在加载每次加载1000次并通过再次触发查询来显示和重新加载下一组。



请指导我在Gridview中一次显示所有记录。

解决方案

你应该尝试使用ASP.Net和jQuery AJAX在GridView上加载按需数据 [ ^ ]





     - Amy


我建​​议和你去自定义寻呼。这将只获取每页的行数,而不是所有行。



请参阅 - 使用SQL Server存储过程在ASP.Net GridView中自定义分页 [ ^ ]。

Hi Friends,

I am loading more than 20K data in Gridview and JQuery filter and sorting options applied to gridview.
SQL Query returns the values in 1.sec.
But to load the data to gridview it is taking more time.

Now i am loading 1000 per load and displaying and reloading next set by again firing the query.

Kindly guide me to display all the records at one time in Gridview.

解决方案

You should try Load on demand data in GridView on scroll using ASP.Net and jQuery AJAX[^]


    --Amy


I would suggest you to go for Custom Paging. This would fetch only the number of rows per page, not all the rows.

See - Custom Paging in ASP.Net GridView using SQL Server Stored Procedure[^].


这篇关于将数据加载到Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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