How do i get the Tab ID from a grid onRowSelect event

Hi,

I have several grids each in thier own tabs and to cut down on coding a new onRowSelect function for each of them when several are almost identical in function.
I want to pass the tab id to the function and use a switch event handle each of the different grids.
I have looked through the documentation, forums and example and cannot work out how to do this.

I already know that there are only 2 params passed from the onRowSelect the row and column ID It would also be noce to have the tab Id as well.

Can you suggest a way that this can be occumplished?

If you are using dhtmlxTabbar, you can get id of active tab with getActiveTab()