It strips out the HTML leaving just “Edit” in the <td></td>. If I use the CHtml::button() method, nothing appears. If I use ‘type’ => ‘text’, then it HTML encodes the string and the actual HTML is seen in the cell.
I thought maybe CButtonColumn would be the answer, but these "buttons" are really link images.
i don’t know i understood you properly or not? but i think you want to add new button in CGridView. if you are looking for this then you can add button by adding following code.
The CButtonColumn is very flexible. You can customise those links or add new ones, as kalpit explained. This tutorial describes the flexibility of the CButtonColumn.