public function LastNameColumn_Render(Person $objPerson)
{
if ($objPerson->Id == $this->intEditPersonId || $this->intEditPersonId == -1 && !$objPerson->Id) {
return $this->txtLastName->RenderWithError(false);
} else {
// Because we are rendering with HtmlEntities set to false on this column
// we need to make sure to escape the value
return QApplication::HtmlEntities($objPerson->LastName);
}
}