Re: pear - structure datagrid

From: Date: Sat, 02 Sep 2006 12:46:33 +0000
Subject: Re: pear - structure datagrid
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25051@lists.php.net to get a copy of this message
Hi Arnaud, nono bret wrote:
The support is not active in Pear ? nobody reply to me !
Where and when do you have asked? I haven't seen an email from you about this, neither in my inbox nor on pear-general mailinglist. Anyway, to the problem itself:
If you have time to answer this little question : Is it possible to catch the field label of the first row of a CSV file, to directly display the first row of my csv file with these labels ? and this without format the field name of the first line with : Without using the code below : $datagrid->addColumn(new Structures_DataGrid_Column("label 1", 0, null, array('align' => 'left'), null, null)); $datagrid->addColumn(new Structures_DataGrid_Column("label 2", 0, null, array('align' => 'left'), null, null)); $datagrid->addColumn(new Structures_DataGrid_Column("label 3", 0, null, array('align' => 'left'), null, null)); I try to catch the field label of my first row from my csv file, but I don't succeed to display them ! Can you give me a direction to go, please ?
I'm not really sure what you're trying to achieve here. Therefore, only two comments: - for only a single line (and especially the first one) of a CSV file it's maybe easier to use PHP's fgetcsv() (www.php.net/fgetcsv) - there should be a new Array renderer for Structures_DataGrid available in the next weeks which allows very flexible access to the recordset If this does not help you, then please ask again with more details. (And please use "Reply all".) Regards, Mark

« previous php.pear.general (#25051) next »