DhtmlxGrid Problem

Hi everybody, i need some help…

im trying to use dhtmlgrid, im running the basic example in the library and everything was going right until i tried to use this event function:

mygrid.attachEvent(“onRowSelect”, doOnRowSelected);

firefox 3.5 tells me: " this.entBox is null Line 21 ", i read about this error in the forum, it tells about an incorrect id or inexist id, or hide… but i am not in that situation i think… here is my code:

var mygrid = new dhtmlXGridObject(‘miGrid’);
function doInitGrid()
{
mygrid = new dhtmlXGridObject(‘miGrid’);

	mygrid.setImagePath("codebase/imgs/");
 	mygrid.setHeader("Model,Qty,Price");
 	mygrid.setInitWidths("*,150,150");
 	mygrid.setColAlign("left,right,right");
 	mygrid.setSkin("light");
 	mygrid.init();
	
	mygrid.loadXML("grid.xml");
	mygrid.setColSorting("str,int,int");
	mygrid.setColTypes("ed,ed,price");

function doOnRowSelected(rowID){
alert("Selected row ID is "+rowID);
}

}

mygrid.attachEvent(“onBeforeRowDeleted”, doBeforeRowDeleted);

any idea of what iam doing wrong???, help me please, and thanks for your time…

hi again, i did some changes in my code and i dont have errors now, but any event i try to use does not work, nothing happens… the changes i did was just cut my javascript code after of my div declaration:

...

it was the solution for " this.entBox is null Line 21 " error, but events do not fire, any idea??
thanks…

“onRowSelect” event occurs right after you click on any row in grid.
Check if you have defined doOnRowSelected event handler.