Re: Datagrids, delayed loop of sorts

From: Date: Thu, 13 Jul 2006 16:22:27 +0000
Subject: Re: Datagrids, delayed loop of sorts
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24643@lists.php.net to get a copy of this message
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

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