Grid View
-
Hi Guys, I am doing a search in which the results are displayed in a grid view.In the grid view attributes i have declared the PageSize=5 and PageIndex=10. My problem is when I have viewed the next pages in the grid view, If I give a new search condition the result set in the grid view loads with the same PageIndex. I would like to show my search result in the grid view starting from the first page, irrespective of the page index viewed for the last search. If anyone knows the solution or suggestion Please reply Thanks Jith
-
Hi Guys, I am doing a search in which the results are displayed in a grid view.In the grid view attributes i have declared the PageSize=5 and PageIndex=10. My problem is when I have viewed the next pages in the grid view, If I give a new search condition the result set in the grid view loads with the same PageIndex. I would like to show my search result in the grid view starting from the first page, irrespective of the page index viewed for the last search. If anyone knows the solution or suggestion Please reply Thanks Jith
Just set the PageIndex to 0 in the event handler of the search button. Not really difficult, or am I missing something?
-^-^-^-^-^- no risk no funk ................... please vote ------>
-
Just set the PageIndex to 0 in the event handler of the search button. Not really difficult, or am I missing something?
-^-^-^-^-^- no risk no funk ................... please vote ------>
Hi, I tried using Gridview1.PageIndex = 0; in the SubmitButton Click Event after DataBinding, but it is not working. thanks, jith