Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 29-May-13 18:14pm
v3
Comments
IpsitaMishra 29-May-13 6:56am    
Where are you facing the Issue,please provide the code.
IpsitaMishra 29-May-13 6:57am    
check this it may help you
http://www.c-sharpcorner.com/uploadfile/afenster/gridview-sorting/
abdussalam143 31-May-13 4:08am    
the solution you marked is paging not sorting

Finally i got the solution

i have used paging to solve the problem
HTML
AllowPaging="true" PageSize="5000"

in gridview.
in vb.net add the below code.
VB
Private Sub grdSearch_PageIndexChanging(sender As Object, e As GridViewPageEventArgs) Handles grdSearch.PageIndexChanging
       grdSearch.PageIndex = e.NewPageIndex
       Bindgrid()
   End Sub
 
Share this answer
 
v3
you can also use DEVEXPRESS components for this purpose.
 
Share this answer
 
<asp:gridview id="GridView1" runat="server" onsorting="SortRecords" allowsorting="True" cellpadding="4" xmlns:asp="#unknown">



Kishor Makwana
Software Engineer
Insight Softech
www.insightsoftech.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900