You cannot bind the grid on client side but you can surely get the new data displayed using Javascript.
Have a look at this article:
ClientCallback custom control for web applications[
^]
Something similar can be done. Once you have the new dataset binded to the grid on server side, get the Grid into html writer text and pass it on via Response to Javascript. Replace the html of Grid. Done!
Something like:
protected void RebindDataGrid()
{
DataTable dt = RetrieveDataTable();
gvTest.DataSource = dt;
gvTest.DataBind();
using (System.IO.StringWriter sw = new System.IO.StringWriter())
{
gvTest.RenderControl(new HtmlTextWriter(sw));
Response.Write(sw.ToString());
}
}
function ResponseRecieved(responseText)
{
document.getElementById("gvTest").outerHTML = responseText;
}