Re: DataGrid vs. Pager
| From: | Justin Patrin | Date: | Sun, 24 Apr 2005 20:23:32 +0000 |
| Subject: | Re: DataGrid vs. Pager | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18935@lists.php.net to get a copy of this message | ||
On 4/24/05, Larry Garfield <larry@garfieldtech.com> wrote:
> I've been looking at the docs for Structures_DataGrid and Pager.
> Frankly, I'm not sure what the practical difference is. Both seem to
> serve the same purpose; show a bunch of array rows in a tabular,
> pageable format. Is one better suited than the other for different
> cases? Perhaps someone who's used both can shed some light on what they
> offer differently, or if there is a difference. Thanks.
>
Structures_DataGrid uses Pager internally. Structures_DataGrid is a
system for sorting, paging, and displaying multiple records from a
variety or sources to a variety of output formats.
Pager is simply a pager. If you use Pager alone yuo have to do all of
the output yourself.
--
Justin Patrin