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".
![](https://i.embed.ly/1/image?url=http%3A%2F%2Fphpgrid.com%2Fwp-content%2Fuploads%2F2014%2F04%2Faccess_phpgrid_local_array.png&key=afea23f29e5a4f63bd166897e3dc72df)