There's also the ARDataSource in contrib - which works very well for simple
scenarios.
http://svn.castleproject.org:8080/svn/castlecontrib/ardatasource/trunk/

j.

On Sat, Jun 20, 2009 at 12:20 AM, Mauricio Scheffer <
[email protected]> wrote:

>
> ActiveRecordMediator<T> comes with these static methods that allow
> defining ordering and return an array of objects:
>
> public static T[] FindAll(Order[] orders, params ICriterion[]
> criterias)
> public static T[] FindAll(DetachedCriteria detachedCriteria, params
> Order[] orders)
> public static T[] SlicedFindAll(int firstResult, int maxResults, Order
> [] orders, params ICriterion[] criterias)
> public static T[] SlicedFindAll(int firstResult, int maxResults,
> DetachedCriteria criteria, params Order[] orders)
>
>
> On Jun 19, 7:24 am, Alex Bibiano <[email protected]> wrote:
> > Hi folk,
> >
> > What’s the best approach to get a list of sortable activerecord
> > objects?
> >
> > I have a Person class and want to bind the FindAll() result (it’s an
> > array of Persons) to a datagridview and enable the user to sort the
> > grid clicking the column header.
> >
> > Thanks,
> >
> > Alex B.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to