I have a GridView that updates a FormView, ive now added the UpdatePanel around the FormView.
When I select a row from the Gridview the FormView Displays the details inside the FormView..great, but......
I have paging enabled on the Gridview so when I click page 2 i dont see the new list in the GridView, how do I fix this?
<-- GridView1 -->
<
MsAjax:ScriptManagerid="ScriptManager"runat="server"EnablePartialRendering="true"/><MsAjax:UpdatePanelID="ID1"runat="server"><ContentTemplate><--FORMVIEW -->
</
ContentTemplate><Triggers>
<MsAjax:AsyncPostBackTriggerControlID="GridView1"EventName="RowCommand"/>
</Triggers></MsAjax:UpdatePanel>
Hi
Putting UpdatePanel around formview should not effect GridView's Paging. If you have paging enabled it should display you the next records in the table. Does it actually select the page No. 2. or it stays on 1.
Amit
If you want to see the updated list (from the FormView), you must put the GridView also in a UpdatePanel.
Can be in the same UpdatePanel where the FormView is in, or in a new UpdatePanel.
If he's in a other Updatepanel, be sure to attach a trigger to the FormView to it.
(i'm not sure if this is what youre problem was, but you never know..)
No comments:
Post a Comment