title: Filtering the Grid in Magento
body: <p>I have made a custom grid in magento that displays saved video urls and its working. But i want to show only records where the <code>urlid</code> is for example <code>3</code> . Here is my <code>_prepareCollection</code> function</p>
  
  <pre><code>protected function _prepareCollection()
  {
      // Get and set the collection for the grid
      $collection = Mage::getResourceModel('drecomm_productvideo/video_collection');
      //what should i put in here, addFieldtoSelect?
      $this-&gt;setCollection($collection);
      return parent::_prepareCollection();
  }
  </code></pre>
  
  <p>my grid extends from <code>Mage_Adminhtml_Block_Widget_Grid</code> and there is no <code>addFieldToFilter</code> function in that class.</p>