PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Vertical Datagrid

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures
View previous topic :: View next topic  
Author Message
jbcook



Joined: 07 Dec 2006
Posts: 1

PostPosted: Thu Dec 07, 2006 5:10 pm    Post subject: Vertical Datagrid Reply with quote

I am only returning one row in my datagrid, is there a way to make it display as a vertical table instead of horizontally? Thanks.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1003

PostPosted: Sun Jan 07, 2007 6:51 pm    Post subject: Re: Vertical Datagrid Reply with quote

jbcook wrote:
I am only returning one row in my datagrid, is there a way to make it display as a vertical table instead of horizontally? Thanks.


No, Structures_DataGrid has no support for this. Of course, you could change your array structure in a way that it looks like a vertical table. I.e., make an array with a "columns": the first one gets the "column label", the second one gets the value.

Code:
array(array('col 1', 1),
  array('col 2', 2),
  ...
);


With some styling, your table could look as you need it.

If you need more help, please ask again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software