Hi,
I have a Master/Detail scenario with a form view and a grid view. When a row is selected on the grid view, the form view is populated and its mode changed to "edit" through a custom handler for the SelectedIndexChanging event of the GridView.
I have wrapped the gridview and the FormView in two update panels. When the GridView row is selected, the GridView's UpdatePanel refreshes OK as does the FormView's UpdatePanel.
However, when the FormView record is updated, the FormView's UpdatePanel refreshes OK, but the GridView does not refresh/rebind, leaving the row still selected.
I imagine that I need to alter the triggers - what should they be?
<atlas:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
...
</asp:GridView>
</ContentTemplate>
<Triggers>
</Triggers>
</atlas:UpdatePanel>
<atlas:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:FormView ID="FormView1" DefaultMode="Insert" runat="server" DataKeyNames="ID" DataSourceID="ObjectDataSource2">
...
</asp:FormView>
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID="FormView1" EventName="ItemInserted" />
<atlas:ControlEventTrigger ControlID="FormView1" EventName="ItemUpdated" />
</Triggers>
</atlas:UpdatePanel>