How do I set the value of a checkbox in a magento custom module? Also, how do I set the name of the checkbox to the value in an array?
Here is the code I use to put
Check this code:
$this->addColumn('myname', array( 'type' => 'checkbox', 'name'=> 'myname', 'values' => $this->_getid(), 'align' => 'center', 'index' => 'entity_id' ));
Replace myname with your required field name. Also getid is your code for dynamic values in this array.
getid