Click here to Skip to main content
15,883,749 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:

How do you get a gridview in one update panel "x" to update a gridview in another update panel "y".

I am currently trying to do this programatically by calling the UpdatePanel.update method but its not refreshing the gridview

eg

in x.eventhandlerDeleted()

{

    y.datasource.databind();

    y.updatepanel.update()

}

This is not working, could someone please advise

Posted
Updated 23-Nov-09 6:04am
v2

i have tried this,

If y.updateMode = true which mine is, then explicilitly calling the y.update() method should have then worked, which in my case is not.

any reasons why, maybe it has something todo with it being in different tabs in the same page.

 
Share this answer
 
Did you set the UpdateMode to Conditional?
 
Share this answer
 

Yes both my update panels have the updateMode set to conditional and i am explicitly calling y.databind() and y.update() but its not working.

Its really very strange to me

 
Share this answer
 

After much investigation, i concluded that its not the update panels that are causing this problem, cause i removed the update panels and i still have this problem.

What i want to do is, i have two tabs on a page.

one tab is for my records and my other tab is for my deleted records.

So what i want to achieve is, if someone deletes a row from the first tab it should then show on my second tab cause its a deleted row.

So the way i am doing this now does not seem to work, in my rowDeleted event i have a grid.databind() to my second tabs gridview. but this does not seem to be updating the gridview in the second tab,

Does anyone perhaps know why ?

 
Share this answer
 
Seems like your question has evolved into an entirely different question. I recommend you post a new question in Quick Answers. You might get more replies that way.
 
Share this answer
 
http://stackoverflow.com/questions/1464563/two-updatepanels-on-asp-net-2-0-form
 
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