Skip to main content



      Home
Home » Eclipse Projects » Nebula » GridTableViewer Sorting(GridTableViewer Sorting)
GridTableViewer Sorting [message #492224] Mon, 19 October 2009 10:06 Go to next message
Eclipse UserFriend
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 10:10 Go to previous messageGo to next message
Eclipse UserFriend
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 11:08 Go to previous messageGo to next message
Eclipse UserFriend
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 11:08 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 09:03:08 EDT 2025

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

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

Back to the top