Re: DataObject datasource for DataGrid
| From: | Olivier Guilyardi | Date: | Mon, 10 Jan 2005 10:10:51 +0000 |
| Subject: | Re: DataObject datasource for DataGrid | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16856@lists.php.net to get a copy of this message | ||
electroteque wrote:
Hi , I have discovered a huge problem with the DataObject datasource for DataGrid, one being that some bug for the toArray method is not fixed so its returning all the object vars and using them as the columns !Have you tried passing the "fields" option ? This will specify which columns you want displayed. As in : $options = array(
'generate_columns' => true,
'fields' => array('col1', 'col2', 'col3',...),
);
$datagrid->bind ($dataobject, $options);
--
og