Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridTableViewer Sorting
GridTableViewer Sorting [message #598476] Mon, 19 October 2009 14:06 Go to next message
Marty Jones is currently offline Marty JonesFriend
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 #598481 is a reply to message #598476] Mon, 19 October 2009 14:10 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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
Previous Topic:GalleryTreeViewer & IEMFListProperty
Next Topic:GridTableViewer Sorting
Goto Forum:
  


Current Time: Thu Apr 25 16:50:28 GMT 2024

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

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

Back to the top