How to get the index of a grid when multiple grids in the pa

Hi Team,



If I have multi grids in my page and i need to get the index of the each grid.



For example if i have 5 grid means,

then i need



1. how many grids inside the page



2. If possible using the gridId i should get the which index that the particular grid is in page



3. I need the grid object for the last worked grid among the five grids.



So please give me guidance to achieve this. It should be thankful, if reply with sample code





Regards,

Ashok


If you have created 5 grids in the page, page will contain 5 grid on the page. Every dhtmlxGrid objects are independent from each other. There is no any one global dthmlxGrid object which could count number of grids or its indexes.