In CGridview, I want to disable “Delete” button for some rows based on condition. I don’t want to hide Delete button. Just want to disable it, so user can view delete button but can not click on that button. If user status is ‘ACTIVE’ at that time only Delete button will be Enable and user can click on it.
I can use ‘Visible’ property but it will hide the button and I don’t want it. If I use ‘htmlOptions’, in that I can not put conditions for each row. Can you please explain in detail or if possible plese give example.
Thank you for the Reply, But still I am not getting proper solution. CSS class is applying for entire row, not for a single button or column. If I make it readonly, it will apply to row and whole row is now readonly including update and delete button. As I want to apply CSS only on Delete Button.