Re: Sorting in Grid

2008-07-30 Thread Howard Lewis Ship
The GridDataSource has control over sorting. If you provide an instance of GridDataSource as the source parameter, rather than a List, you'll have the control you need. On Wed, Jul 30, 2008 at 11:38 AM, Moritz Gmelin <[EMAIL PROTECTED]> wrote: > OK, > > but then I would have to dramatically chang

Re: Sorting in Grid

2008-07-30 Thread Moritz Gmelin
OK, but then I would have to dramatically change all models I use for grids. To use some transient properties of the data returning CaseInsensitiveStrings for the actual property I wanted to display. I was rather hoping for some very T5-like-elegant way to either replace the default Compara

Re: Sorting in Grid

2008-07-30 Thread Daniel Jue
Here is one way to do it: For the object associated with the column you want to sort, you override the comparable method. I am not sure if there is an existing JDK Object for "case-insensitive String", but you could create one. Overriding comparable is how you do the custom sorting. There are p