DataGrid and addColumn()
| From: | Markus Wolff | Date: | Mon, 15 Aug 2005 11:57:17 +0000 |
| Subject: | DataGrid and addColumn() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20419@lists.php.net to get a copy of this message | ||
Hi all,
short question about Structures_DataGrid: I'm trying to make a generic base class for my DB_DataObjects, which has a getGrid() method.
FormBuilder integration is on, so all the columns that are to be displayed are already determined by the individual DataObjects' properties.
However, I'd like for all grids to have at least one extra column ("Edit record"), which I wanted to add via addColumn() in the base DataObject. Right now, I don't seem to be able to do that, because once addColumn() is called, the auto-generation of all the other columns won't happen (in other words, I *only* get the edit column).
Is there some way to tell Structures_DataGrid that the column should really just be *added* to the existing ones, or do I really have to create all the columns for each DataObject manually (or, read them from the FormBuilder config in my generic code, effectively duplicating the code that already is in Structures_Datagrid)?
CU
Markus