 <p>Go to your module or extension folder then /Block/Adminhtml/Blog/Grid.php. Open this Grid.php file and search the function <code>protected function _prepareCollection()</code> and add the following code under this function before <code>return parent::_prepareColumns();</code>.</p> <pre><code>$this-&gt;addExportType('*/*/exportCsv', Mage::helper('blog')-&gt;__('CSV')); $this-&gt;addExportType('*/*/exportXml', Mage::helper('blog')-&gt;__('XML')); </code></pre> <p>After add this code it may be looks like that: Next, in this extension or module folder go to /controllers/Adminhtml/ and open the controller file and add the following code under the class (add the code bottom of the page before last '}') </p> <pre><code>public function exportCsvAction() { $fileName = 'blog.csv'; $content = $this-&gt;getLayout()-&gt;createBlock('[your-module-name]/adminhtml_[your-module-name]_grid') -&gt;getCsv(); $this-&gt;_sendUploadResponse($fileName, $content); } public function exportXmlAction() { $fileName = 'blog.xml'; $content = $this-&gt;getLayout()-&gt;createBlock('[your-module-name]/adminhtml_[your-module-name]_grid') -&gt;getXml(); $this-&gt;_sendUploadResponse($fileName, $content); } protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream') { $response = $this-&gt;getResponse(); $response-&gt;setHeader('HTTP/1.1 200 OK',''); $response-&gt;setHeader('Pragma', 'public', true); $response-&gt;setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true); $response-&gt;setHeader('Content-Disposition', 'attachment; filename='.$fileName); $response-&gt;setHeader('Last-Modified', date('r')); $response-&gt;setHeader('Accept-Ranges', 'bytes'); $response-&gt;setHeader('Content-Length', strlen($content)); $response-&gt;setHeader('Content-type', $contentType); $response-&gt;setBody($content); $response-&gt;sendResponse(); die; } </code></pre> <p>Now replace the [your-module-name] text with your extension or module name and save then check.</p> <p><strong>* Please like if this post help you!*</strong></p>