Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridTableViewer Sorting(GridTableViewer Sorting)
GridTableViewer Sorting [message #492224] Mon, 19 October 2009 14:06 Go to next message
Marty Jones is currently offline Marty Jones
Messages: 54
Registered: July 2009
Member
I am using a GridTableViewer and I am trying to get sorting to work with the viewer. I have set a ViewerSorter by calling the .setSorter method on the GridTableViewer but none of the columns have a sort indicator on them and clicking on a column does not seem to change the sorting based upon my Sorter implementation.

Is there any other steps I need to do in order for sorting to work? I don't see a .setSortColumn() method or .setSortOrder() method on the Grid control like a Table control has.

Thanks,

Marty
Re: GridTableViewer Sorting [message #492225 is a reply to message #492224] Mon, 19 October 2009 14:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5422
Registered: July 2009
Senior Member
IIRC the method you need is the one on GridColumn#setSort()

Tom

Marty Jones schrieb:
> I am using a GridTableViewer and I am trying to get sorting to work with
> the viewer. I have set a ViewerSorter by calling the .setSorter method
> on the GridTableViewer but none of the columns have a sort indicator on
> them and clicking on a column does not seem to change the sorting based
> upon my Sorter implementation.
> Is there any other steps I need to do in order for sorting to work? I
> don't see a .setSortColumn() method or .setSortOrder() method on the
> Grid control like a Table control has.
>
> Thanks,
>
> Marty
Re: GridTableViewer Sorting [message #492246 is a reply to message #492225] Mon, 19 October 2009 15:08 Go to previous messageGo to next message
Marty Jones is currently offline Marty Jones
Messages: 54
Registered: July 2009
Member
Tom,

Thanks for the info. It makes sense now seeing how you can have multiple sort columns using the Grid control.

Marty
Re: GridTableViewer Sorting [message #598485 is a reply to message #492225] Mon, 19 October 2009 15:08 Go to previous message
Marty Jones is currently offline Marty Jones
Messages: 54
Registered: July 2009
Member
Tom,

Thanks for the info. It makes sense now seeing how you can have multiple sort columns using the Grid control.

Marty
Previous Topic:GridTableViewer Sorting
Next Topic:Nebula grid - get selected values
Goto Forum:
  


Current Time: Sat Oct 25 13:37:13 GMT 2014

Powered by FUDForum. Page generated in 0.01891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software