Following article demonstrates one of the way to fetch data from server side and show in grid:
ClientCallback custom control for web applications[
^]
Above article uses Callback (another option to AJAX). If you need to use AJAX, logic remains the same just the way to call server side for data changes.
document.getElementById("gvTest").outerHTML = responseText;