Access local array data source
On the server side, the local array stored in public variable $data_local. On the client side when grid renders, the javascript array to stored local data is named "_grid_TABLENAME".
So, if your first line is
$dg = new C_DataGrid($my_local_array,
"id", "data1");
then the javascript array is "_grid_data1".