wiring up the grid to AJAX