title: Grid doesn't appear in custom admin module in Magento
body: <p>I am trying to create a custom module in magento admin. I have reached the point where a new link has been added to the menu and by clicking on it, I can navigate to the index action of the controller of the module. But here I cannot see the grid, only the header text and the button which has been added in the block construct appear.</p>
  
  <p>I can see that since this block extends the <code>Mage_Adminhtml_Block_Widget_Grid_Container</code> class, it will by itself add the grid block inside this module as its child. </p>
  
  <p>And the Grid.php is included which I verified by printing out something in the overriden <code>_prepareColumns</code> method. </p>
  
  <p>What am I missing here ? </p>
  
  <p>These are the contents of the Grid.php file</p>
  
  <pre><code>class Book_Brands_Block_Adminhtml_Brands_Grid extends Mage_Adminhtml_Block_Widget_Grid {
  
      public function __construct() {
          parent::__construct();
          $this-&gt;setId('brandsGrid');
          $this-&gt;setDefaultSort('brands_id');
          $this-&gt;setDefaultDir('ASC');
          $this-&gt;setSaveParametersInSession(true);
      }
  
      protected function _prepareCollection() {       
          $collection = Mage::getModel('brands/brands')-&gt;getCollection();
          $this-&gt;setCollection($collection);
          return parent::_prepareCollection();
      }
  
      protected function _prepareColumns() {
  
          $this-&gt;addColumn('brands_id', array(
              'header' =&gt; Mage::helper('brands')-&gt;__('ID'),
              'align'  =&gt;'right',
              'width'  =&gt; '50px',
              'index'  =&gt; 'brands_id',
          ));
          $this-&gt;addColumn('title', array(
              'header'=&gt; Mage::helper('brands')-&gt;__('Title'),
              'align' =&gt;'left',
              'index' =&gt; 'title',
          ));
          $this-&gt;addColumn('status', array(
              'header'=&gt; Mage::helper('brands')-&gt;__('Status'),
              'align' =&gt; 'left',
              'width' =&gt; '80px',
              'index' =&gt; 'status',
              'type'  =&gt; 'options',
              'options' =&gt; array(
                  1 =&gt; 'Enabled',
                  2 =&gt; 'Disabled',
              ),
          ));
          $this-&gt;addColumn('action', array(
              'header' =&gt; Mage::helper('brands')-&gt;__('Action'),
              'width'  =&gt; '100',
              'type'   =&gt; 'action',
              'getter' =&gt; 'getId',
              'actions' =&gt; array(
                  array(
                      'caption'  =&gt; Mage::helper('brands')-&gt;__('Edit'),
                      'url'  =&gt; array('base'=&gt; '*/*/edit'),
                      'field' =&gt; 'id'
                  )
              ),
              'filter'  =&gt; false,
              'sortable' =&gt; false,
              'index' =&gt; 'stores',
              'is_system' =&gt; true,
          ));
          return parent::_prepareColumns();
      }
  
      public function getRowUrl($row) {
          return $this-&gt;getUrl('*/*/edit', array('id' =&gt; $row-&gt;getId()));
      }
  }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>PS. I have tried flushing the cache but no luck</p>