Multiple grids onRowSelect

Hi

I have multiple grids on a page and all is working well, however each has a a common onRowSelect function. As I see it we just get the two parameters rowID and cellIndex passed to the function. Is there a way of determining which grid caused the event to fire? I have a kludgy solution but thought that there should be a ‘correct’ way of doing it.
Thanks, as ever, for your help

You may try to use:

mygrid.attachEvent("onRowSelect", function(id,ind){ grid_container=this.entBox.id });

Many thanks, that was exactly what I was looking for, works a treat.
Clive