Update 2 Rows

Hi! How to update 2 rows using CHtml::link?

lets just say in the link have an activate/deactivate and if the current row have "activated" value it will become null and the new row that you want to update will have the new value "activate" same goes to deactivate.

CHtml::link just creates a <a> hyperlink, nothing else. If you would like to update stuff, use CHtml::ajaxLink instead!