asp .net Gridview inside Dialog

asp .net Gridview inside Dialog

Hi !
I'm using jquery from about 6 months inside .NET environment.
Now I'm using jquery UI Dialog inside an aspx page (.NET 4.0 framework).

I'm having a problem saving data from gridview but now I explain better :

I have a page with other fields, a div (dialog) and inside a usercontrol that contains update panel and a gridview inside the contenttemplate of updatepanel.
 
I push a button that save data on page, do a databind of the user control and then I run a Script that show the jquery dialog.

I show the right content and I can change some data.
I've also some checkbox in the gridview that enable the row editing. It works fine !

When the user ends to edit the gridview in the dialog, I need to save all the data of the usercontrol but I'm having some problem to get the datasource of the gridview....

I know that jquery dialog work a few different from standard controls (it's client side) but I've server side controls inside !

How can I do ?

Thanks !