Click here to Skip to main content
15,888,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have a aspx page and on that page i have a grid view. On the grid view two buttons are there so when the user clicks on those button a pop up will open to edit the data in the grid. I am using java script to refresh the parent page, i have done that but now the problem is if user is on the second page and he edits the data by using the pop up, so the gird also refreshes and comes to the starting page.


I want that i should refresh the grid as the data is being updated without changing the page index.

I am working on VS 2008.

Is there a way.


Thanks in adv.

Tc
Posted
Updated 26-May-10 2:05am
v2

1 solution

Using a full postback or partial rendering, you can keep track of current page index before refreshing the gridview.

Or just update the row you just edited using the JavaScript.

You can also use Callback[^] to update the Gridview with data.
Just get the data of the current page index you are on, and refresh/update the grid!
 
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