Gridview排序不起作用 [英] Gridview sorting is not working

查看:144
本文介绍了Gridview排序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果记录超过5000条记录,则Gridview排序不起作用。对5000条记录排序工作正常。如何解决这个问题。



提前谢谢

解决方案

最后我得到了解决方案



i使用分页来解决问题

 AllowPaging =truePageSize =5000



in gridview。

in vb.net add以下代码。

 私人  Sub  grdSearch_PageIndexChanging(sender  As   Object ,e  As  GridViewPageEventArgs)句柄 grdSearch.PageIndexChanging 
grdSearch.PageIndex = e.NewPageIndex
Bindgrid()
结束 Sub


哟你也可以使用DEVEXPRESS组件。


< asp:gridview id =GridView1runat =serveronsorting =SortRecordsallowsorting =Truecellpadding =4 xmlns:asp =#unknown>







Kishor Makwana

软件工程师

Insight Softech

www.insightsoftech.com

Gridview sorting is not working if records exceeds more than 5000 records ..Upto 5000 records sorting working fine.How to solve this.

Thanks in advance

解决方案

Finally i got the solution

i have used paging to solve the problem

AllowPaging="true" PageSize="5000"


in gridview.
in vb.net add the below code.

Private Sub grdSearch_PageIndexChanging(sender As Object, e As GridViewPageEventArgs) Handles grdSearch.PageIndexChanging
       grdSearch.PageIndex = e.NewPageIndex
       Bindgrid()
   End Sub


you can also use DEVEXPRESS components for this purpose.


<asp:gridview id="GridView1" runat="server" onsorting="SortRecords" allowsorting="True" cellpadding="4" xmlns:asp="#unknown">



Kishor Makwana
Software Engineer
Insight Softech
www.insightsoftech.com


这篇关于Gridview排序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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