Hey Aruna, i ran into the second problem, i read through the simple authorisation from Gustavo, and want to add the same thing to the CGridView in the admin.php
// I suggest you below way.
// In your model define as below
const CAT_stuff1 = 0;
const CAT_stuff3 = 2;
public $catOptions = array(self::CAT_stuff1=>'the stuff',
self::CAT_stuff3=>'the cool stuff');
// in _view.php
echo CHtml::encode($data->catOptions[$data->category]);
// in admin.php
array('name'=>'category',
'value'=>'$data->catOptions[$data->category]'),