CButtonColumn different in CGridView from row to row depending on data in single rows

I start this topic in general discussion for yii 1.1 but I had no reply:

I’m using CGridView and CButtonColumn, the buttons should be different for each row conditioned by the data in the row.

For instance I have rows where the user can "Show Update Delete" and row where he can only "Show" (so the command button should be different from row to row)

Could be this possible using CGridView?


I had the same need so I made an extension… take a look at:


This is exactly what I was looking for.

Thank you very much for help