Hi,
I have a gridview in an updatepanel. The updatepanel's updatemode is set to conditional. I have a routine called GridView1_RowCommand that I associated with the gridview with the attribute OnRowCommand="GridView1_RowCommand." In that command, I make a change to the datasource, rebind the gridview and call the updatepanel's update method to refresh that part of the page.
Nothing happens. ChildrenAsTriggers is set to true. I've stepped through the code and know that it is being executed from the edit command.
As a thought experiment, I created another button and pasted my code from the GridView1_RowCommand into it. It triggers the update without any trouble.
I've tried specifying some triggers:
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="GridView1_RowCommand" />
</Triggers>
But the gridview still didn't update the panel.
The workaround I'm thinking of doing now is to create an invisible button with a click event and call that click event from within the routine associated with the GridView. But this seems unnecessarily messy. Is there something I'm overlooking here?
Thanks,
Ron