/** * Get the meta data and merge with standard CGridView column elements * to create a column array that fits the CGridView columns API */ protected function getCGridViewColumns() { $columns = parent::getCGridViewColumns(); if ($this->rowsAreSelectable) { $firstColumn = array_shift($columns); } array_unshift($columns, $this->getCGridViewStarColumn()); if ($this->rowsAreSelectable) { array_unshift($columns, $firstColumn); } return $columns; }