Adding Thumbnail Images To Magento Admin Grid

In this blog post, we will see how to add custom column type to our magento admin grid.

Specifically, we will see how to add a thumbnail image column to our grid. Before reading the post, i assume your familiar with Admin Grid and Forms, and already have module setup with the Grid Working.
Now lets start with how to add a custom column, in this blog i will assume the name of my module to be Excellence_Employee. I will be showing an example on how to add an image to a grid column.

Adding Image to Grid

Open your Grid.php file and add the code in the _prepareColumns() function

This is all that is needed, if you open your grid you show see an image there. You have to adjust path/src of the image to make it show correctly. Here the $this->getColumn() function is the important function, you can access the array you pass in the Grid.php file in the getColumn() function. For example, if we write in Grid.php file