Is there a way to implement this kind of functionality with CGridView?
At a quick glance I’d say chances were good.
Check this similar topic - http://www.yiiframework.com/forum/index.php?/topic/15606-