Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created a search page and enabled paging for the gridview.

initially when search button is not clicked paging works fine. But when search condition is put, and when user clicks search button if there are many records to display for the specific condition, then the paging doesn't work

to display initial gridview, I have made objectdatasource1 and objectdatasource2 is for the search button click

in the code behind page i have added this for the OnPageIndexChanging event:

HTML
GridView1.PageIndex=e.NewpageIndex

GridView1.DataBind()


with this code the problem I said occurs, how to solve this out??? it would be of great help


[edit] SMS spelling corrected - Nelek [/edit]
Posted
Updated 16-Apr-12 10:48am
v2
Comments
Nelek 16-Apr-12 16:50pm    
Please, write texts in proper english. Using sms/chat words makes it difficult to read and implies a lack of respect to the users that you are asking for help.

1 solution

Hello check this link
I hope this will help you
how to perform sorting for all columns & paging for GridView[^]
 
Share this answer
 

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



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