set dhtmlXGridObject as parameter

Sir ,

With the sample below ,
dhtmlx.com/docs/products/dhtmlx … _grid.html

I want to modify code as below ,

myGrid.load("…/common/grid_16_rows_columns_manipulations.xml" , doAfterRefresh(myGrid) );
function doAfterRefresh(Grid){
alert(Grid.cellByIndex(0,0).getValue());
}

Counld you help me modify it and let it work .

Thank you
Best regards

I wish I could access dhtmlXGridObject in doAfterRefresh function .

Feel so sad , no one give me a hand .

I apologize for the delay with the answer.

You may try to use:
myGrid.load("…/common/grid_16_rows_columns_manipulations.xml" , doAfterRefresh);
function doAfterRefresh(){
alert(myGrid.cellByIndex(0,0).getValue());
}