Click here to Skip to main content
14,361,552 members
Rate this:
Please Sign up or sign in to vote.
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:

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 11: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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100