I was trying to update the content of a modal dialog, and this code works for me:
You could add a trigger of the gridview