Datagrid access the rows data
| From: | Mark Steudel | Date: | Fri, 31 Mar 2006 04:52:51 +0000 |
| Subject: | Datagrid access the rows data | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23490@lists.php.net to get a copy of this message | ||
I was wondering if there was a way to access the data in the row, like
below. I have a column called color which has a color in it, e.g. #336699,
and I want to make the background color of this cell the same color as the
data:
$dg->addColumn(new Structures_DataGrid_Column('Color', 'color',
'color',
array( 'style' => 'background-color: '.color )));
Thanks, Mark