Cgridview - Primary Key Values As Array


Want to do:

I want to show the VIEW in fancybox extention with Previous and Next link within fancybox, So I decide to pass following additional values in CButtonColumn’s view link

  1. keys

  2. current


This is a array like (1,4,6,7,9,20) getting primary keys from current display records


This is current record position (initial 0)

Brief Description:

Just I want to view another records [without close and click another view link in CGridView] using previous next link of the view within fancy box like image gallary


To achieve this, How can I get primarykeys as array from CGridView and also get record serial numbers like 0,1,2…


How I pass this as parameter in VIEW link of CGridView

Please help me