• Creating Magento admin grid without database tables

    It’s not common that you have to display something that’s not in the Magento database. It was not too difficult to figure out how to do it but checking this might save you few minutes. Feel free to download the code itself: Wizguild_VirtualGrid.zip Virtual grid package structure In the Grid.php I create a Varien_Data_Collection object: protected function _prepareCollection() { $collection = new Varien_Data_Collection(); foreach (array('alpha','beta','charlie') as $item) { $data = new Varien_Object(); $data->setName($item); $collection->addItem($data); } $this->setCollection($collection); } …then just use it in the _prepareColumns():