some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :