public function render(Varien_Object $row) { if ($row->getStatus() == 'unbound') { $form = '<form action="' . $this->getUrl('*/*/manualBind/id/' . $row->getId() . '') . '" method="post"><select name="bind" onchange="javascript:this.form.submit()">' . $this->getOptions() . '</select><input name="form_key" type="hidden" value="' . Mage::getSingleton('core/session')->getFormKey() . '"/></input></form>'; } else { $form = $row->getBindname(); } return $form; }