Row ID in CGridView

Greetings friends.

I have a cgridview with some relevant columns and the id field is a ajaxlink which opens a FancyBox to show all the details of that specific record. When I’m not on the first page or make a search, what I get as id is not real. It is only an id with respect to the registry location on that page. Has anyone else in this forum had a similar conflict? I only need the record id to perform my ajax and open the fancybox with right data, that’s all…

Any help will be greatly appreciated

I disabled update via ajax (‘ajaxUpdate’=>false,) and it seems to be good… Maybe somebody has a better solution