Magento – multiple collections in one admin grid

adminhtmlcollection;grid

Is it possible to have multiple collections in one grid? Suppose if we have grouped data, and we need to display it in multiple dynamic child grids.

Suppose data is:

firstname lastname city
Group 1: 
mark      james     new york
mark      james     new york

Group 2:
mark      james     california
mark      james     california

Group 3 :
aston    wright     france
aston    liam       france

Is it possible?

Best Answer

You may add several grids to the page.

Otherwise you will need to create some sort of compound collection in _prepareCollection method. In this case, you'd better create some new model which would be dealing with data.