Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Sorting on a checkbox column in a Table
Sorting on a checkbox column in a Table [message #275008] Tue, 02 November 2004 11:30 Go to next message
Eclipse UserFriend
Hi-

I have a table constructed with the SWT.CHECK option. I'm wondering if
it is possible to sort the checkbox column. I've implemented a sorter
that does the right thing (the rows get sorted correctly when the
checkbox column is clicked), but the checkboxes do not move along with
their rows. Is there any way to have the checkboxes move?

Thanks,
- Mia
Re: Sorting on a checkbox column in a Table [message #275025 is a reply to message #275008] Tue, 02 November 2004 17:25 Go to previous message
Eclipse UserFriend
Mia,

How do you change the order of the TableItems? I assume that you dispose
and recreate them (at least the ones that need to move) each time? If so,
then those TableItems that do not change between reorderings should bring
their checked state with them even if their index changes, and if this isn't
happening then you should log a bug report with Platform - SWT. TableItems
that are disposed and then recreated do need to have their initial checked
state set, of course.

Grant

"Mia Stern" <mia_stern@us.ibm.com> wrote in message
news:cm8cme$ldu$1@eclipse.org...
> Hi-
>
> I have a table constructed with the SWT.CHECK option. I'm wondering if
> it is possible to sort the checkbox column. I've implemented a sorter
> that does the right thing (the rows get sorted correctly when the
> checkbox column is clicked), but the checkboxes do not move along with
> their rows. Is there any way to have the checkboxes move?
>
> Thanks,
> - Mia
>
Previous Topic:Default TreeViewer Tooltip
Next Topic:Eclipse slow over ClearCase network drive
Goto Forum:
  


Current Time: Thu Jul 17 23:48:08 EDT 2025

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

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

Back to the top