After the end of initialization, and then continue ,how do?

myGrid.loadXML("…/data");
myGrid.init();

alert(""); //no this no later taken
myGrid.forEachCell(myGrid.getRowId(0),function(cellObj,ind){ cellObj.setValue(1); });

After the end of initialization, and then continue with the following procedures,how to do

Unfortunately the issue is not clear. Please, try to explain it in the other words.

a note: Data to the grid should be loaded after the init:
mygrid.init()
mygrid.load(url)