public function render(Varien_Object $row) { $str = ''; if ($cid = $row->getReferralParentId()) { if ($customer = $this->_getCustomer($cid)) { $str = $customer->getName(); $url = $this->getUrl("adminhtml/customer/edit/", array('id' => $cid)); $str = "<a href='{$url}' target='{$str}'>{$str}</a>"; } } return $str; }