dekacode
Posts: 53
|
| Posted: 04/18/2005, 8:02 PM |
|
PHP, MySQL
editable grid (Crosstab)
custom insert/update functions
Is it possible to reference the grid column names programatically, ie. to loop through all the controls
for ($id=0; $id<$MAX_COL; $id++)
{
$index = "col_name" . $id;
echo $my_grid->column[$index]->GetValue();
}
instead of
$my_grid->col_name0
$my_grid->col_name1
|
 |
 |
mrachow
Posts: 509
|
| Posted: 04/25/2005, 3:45 AM |
|
You could try something like
eval('echo $my_grid->column' . $index . '->GetValue();');
_________________
Best regards,
Michael |
 |
 |
Curtis
|
| Posted: 07/27/2005, 7:25 AM |
|
http://forums.codecharge.com/posts.php?post_id=60507
|
|
|
 |
|