RE: [PEAR] Re: Datagrids, delayed loop of sorts
| From: | Mark Steudel | Date: | Thu, 13 Jul 2006 16:52:15 +0000 |
| Subject: | RE: [PEAR] Re: Datagrids, delayed loop of sorts | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24644@lists.php.net to get a copy of this message | ||
Thanks and sorry for not being clear enough.
Is there a way in datagrid for a record to access other records?
-----Original Message-----
From: Mark Wiesemann [mailto:wiesemann@php.net]
Sent: Thursday, July 13, 2006 9:22 AM
To: pear-general@lists.php.net
Subject: [PEAR] Re: Datagrids, delayed loop of sorts
Mark Steudel wrote:
> What I want to do is create a "delayed" loop of sorts, that allows me to
> print out the previous record, the current record, and the next record. I
> use this to allow a user to move records up or down etc. Sample code
below:
[...]
> I was wondering if something like this was efficient to do with datagrids.
I
> was thinking that perhaps instead of binding a whole resource to datagrid,
I
> could add each row individually. Is it worth figuring out how to do this
> with datagrids, or am I using a hammer to put in a screw??
I'm not really sure, what you're trying to do here, but about the
individually added rows: You can use the Array DataSource which (as the
name indicates) expects an array of records. If this array has three
entries, this could be what you need.
If this does not help you, please try to describe it in a different (or
more extensive) way.
Regards,
Mark
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php