Virtual Ccheckboxcolumn

I am using checkboxcolumn in a gridview. I want to do this without the checkbox in the model (i have to use CArrayDataProvider for my dataprovider). I just need it to know the selection row was checked. How can I do this? Do I need to add a virtual attribute to the model, or can I add it as an attribute of the controller model?

I can’t figure out how to get it into the CArrayDataProvider.

I solved this with virtual attributes - this article taught me how to do it.