Create button of CGridView with function renderDataCell(), sort table (update) column

Hello friends,

i would like to know how to create a button in my view (path: ./components/widgets/views/r_widget.php) and how to get it work. This button should be connected to CGridView (path: ./yii/framework/zii/widgets/grid/CGridView.php) and should be integrated into the function


	protected function renderDataCell($column, $row)

	{	

		$column->renderDataCell($row);		

	}



The button have to sort a column (column is named ‘score’, column is from type int) (table got several columns ($this->columns[9]->getDataCellContent($row)) by a fixed value. I didnt get it work until now. Button doesnt react a thing. Any possible solution for this type of problem?

Many Thanks!