Display Clinkcolumn Without Link

Hi

I have a column defined in my CGridView as class=>‘CLinkColumn’, this displays a list of users, the user links point to their profile. I would like to be able to remove links for some users but still display their username in the column. The only way I can do this is by removing the labelExpression value, But this leaves the field blank and I would like to display just the name without a link. If I leave the urlExpression blank there is no link but the username still shows as a link, I woulod like to remove that.





<?php $this->widget('zii.widgets.grid.CGridView', array(

    //    'dataProvider'=>$model->search(),

            'dataProvider'=>$dataProvider,

     //   'filter'=>$data,

            'columns'=>array(

                array(    

                    'header'=>'username',

                    'labelExpression'=>'$data->username',

                    'urlExpression'=> '$data->userUrl',

                    'class'=>'CLinkColumn'         

                ),

                'firstname',

                'lastname',

                'status',

          ),

)); ?>






Why you can use this CLinkColumn?

you can try this…


 array(

            'name' => 'username',

            'header' => 'User Name',

            'type' => 'raw',

            'value' => '$data->username',

            'htmlOptions' => array('width' => '10%'),

        ),