For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2006 > Datagrid access the rows data









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Datagrid access the rows data
Mark Steudel

2006-03-31, 3:59 am

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com