Hello.
There are some properties in CGridColumn for adding special html options:
/**
* @var array the HTML options for the data cell tags.
*/
public $htmlOptions=array();
/**
* @var array the HTML options for the header cell tag.
*/
public $headerHtmlOptions=array();
/**
* @var array the HTML options for the footer cell tag.
*/
public $footerHtmlOptions=array();
But there is no such property for filter cells. It can be implemented like this:
/**
* @var array the HTML options for the filter cell tag.
*/
public $filterHtmlOptions=array();
/**
* Renders the filter cell.
*/
public function renderFilterCell() {
echo CHtml::openTag('td', $this->filterHtmlOptions);
$this->renderFilterCellContent();
echo "</td>";
}
For example, without this you cannot hide column with style="display:none;" (filter cell will be visible).