dropDownList, CGridView, Add new record

Hi to All,

question is:

  • how can I add field with caption like ‘Add new contry District’ at the end of dropDownList of CGridView, which will be used for a redirecting to view/create page?

in my view/admin, I use dropDownList inside CGridView for filtering, dropdown is populated with the list of IDs that came from the database, in id=>value form. e.g.

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

    'id' => 'municipalitie-grid',

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

    'filter' => $model,

    'columns' => array(



            'name' => 'region_name',

            'value' => '$data->countryDistrict->countryRegion->region_name',

            'filter' => CountryRegion::model()->getRegionNames('region_name', 'region_name'),


Any 1?

If someone is interested…