I have a form in front end that save vale in database and shown in the admin grid. I have an action button in front of each row so click of this button i want to get the rest of columns value.
I have following grid in admin:
protected function _prepareColumns()
{
$this->addColumn('name', array(
'header' => Mage::helper('optfirst_reviewmycompany')->__('Name'),
'align' => 'right',
'width' => '10px',
'index' => 'name',
));
$this->addColumn('email', array(
'header' => Mage::helper('optfirst_reviewmycompany')->__('Email'),
'align' => 'left',
'index' => 'email',
'width' => '50px',
));
$this->addColumn('comment', array(
'header' => Mage::helper('optfirst_reviewmycompany')->__('Comments'),
'width' => '150px',
'index' => 'comment',
));
$this->addColumn('action',
array(
'header' => Mage::helper('optfirst_reviewmycompany')->__('Send Email'),
'width' => '50',
'type' => 'action',
'getter' => 'getId',
'actions' => array(
array(
'caption' => Mage::helper('optfirst_reviewmycompany')->__('Review Email'),
'url' => array('base'=> '*/*/view'),
'field' => 'id'
)),
'filter' => false,
'sortable' => false,
'index' => 'stores',
'is_system' => true,
));
How i can do this for each row.