protected function renderRowInternally($request, $row)
{
// Iterate through the columns and render the
// cells for the given row.
$renderedCells = array();
$columns = $this->getColumns();
foreach ($columns as $column) {
assert(is_a($column, 'GridColumn'));
$renderedCells[] = $this->_renderCellInternally($request, $row, $column);
}
// Pass control to the view to render the row
$templateMgr = TemplateManager::getManager($request);
$templateMgr->assign(array('grid' => $this, 'columns' => $columns, 'cells' => $renderedCells, 'row' => $row));
return $templateMgr->fetch($row->getTemplate());
}