CGridView problem

Hello All

I have a table in MySQL named as news. this table has a primary key ‘id’ that is auto increament.

now, i want to use this table model for cgridview data. this is simple and the gii creates it very good.

my problem is as follows :

i want to access the id of each record in the cgridview for some operations. for example i want to update a record with ajax. but i cant access the id of the record. is there a solution for do this ?

thank you in advance.

best regards,

M. Etemadian

you can get the id using




$data->pk