title: Accessing header container in Extjs4
body: <p>I want to call the <code>getGridColumns()</code> method of the header container but I am not getting access to the grid's header container. I tried the following:</p>
  
  <pre><code>initComponent : function() {
              var grid = this;
  
      var headerCt = grid.getView.getHeaderCt(); //here
      var menuItems = new Array();
      menuItems = headerCt.getGridColumns(true);
                 ...
  }
  </code></pre>
  
  <p>but this is not working. It gives me error as 'Object doesn't support this property or method'. Any suggestions?</p>