on click Event with DHTML Grid

Guyz,

I require to display a model dialog upon clicking a cell inside dhtmlgrid.I tried with writing down a funtion for the onlclick event.But some how the method is not working.See the code below.any help,greatly appreciated.

Grid.attachEvent("onClick",doOnRowclick());
		 function doOnRowclick(cellIndex)
		 { 

		    if(cellIndex == 3)
			{

				var test = new Array();
				var newValues=window.showModalDialog("<%=context%>/test.do?pageAction=initAct",test,"dialogWidth:398px;dialogHeight:378px;help:no;status:no");
			}	
		 }

dhtmlxGrid hasn’t got “onClick” event. You should use “onRowSelect” event. Please find list of all available events here docs.dhtmlx.com/doku.php?id=dhtmlxgrid:events

Thanks…

But onRowSelect event would be applicable to all the cells in a particular row and i would like to control the event based on a cell.I have searched the documentation but not sure about any possible events for click/any other event for a cell.any suggestions pls.