Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to re-arrange Table Columns programatically
How to re-arrange Table Columns programatically [message #522394] Mon, 22 March 2010 14:30 Go to next message
Eclipse UserFriend
Originally posted by: msoori.lggi.com

How can I re-arrange the columns in a table programatically? You can
drag the table columns to re-order how the columns are arranged, but I
also need to re-arrange the columns based on the column order user
selects from a dialog. I dont see any methods in the TableColumn or the
Table class to do this, but since you can do it by dragging and
dropping the table columns, it should be possible. Any ideas on how to
do this?

TIA
Mahesh
Re: How to re-arrange Table Columns programatically [message #522643 is a reply to message #522394] Tue, 23 March 2010 13:33 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Use Table.setColumnOrder(int[]) (@since 3.1).

Grant


"Mahesh Soori" <msoori@lggi.com> wrote in message
news:ho7uu6$cca$1@build.eclipse.org...
> How can I re-arrange the columns in a table programatically? You can
> drag the table columns to re-order how the columns are arranged, but I
> also need to re-arrange the columns based on the column order user
> selects from a dialog. I dont see any methods in the TableColumn or the
> Table class to do this, but since you can do it by dragging and
> dropping the table columns, it should be possible. Any ideas on how to
> do this?
>
> TIA
> Mahesh
Re: How to re-arrange Table Columns programatically [message #522670 is a reply to message #522394] Tue, 23 March 2010 10:02 Go to previous message
Eclipse UserFriend
Originally posted by: msoori.lggi.com

OK, I figured this out. Table.setColumnOrder() is the way to do this.

Mahesh Soori wrote:
> How can I re-arrange the columns in a table programatically? You can
> drag the table columns to re-order how the columns are arranged, but I
> also need to re-arrange the columns based on the column order user
> selects from a dialog. I dont see any methods in the TableColumn or the
> Table class to do this, but since you can do it by dragging and
> dropping the table columns, it should be possible. Any ideas on how to
> do this?
>
> TIA
> Mahesh
Previous Topic:ExceptionInitializerError when deploying eclipse product
Next Topic:how to restart an RCP application?
Goto Forum:
  


Current Time: Sat Dec 20 22:22:05 GMT 2014

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

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