Skip to main content



      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 10: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 09:33 Go to previous message
Eclipse UserFriend
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 06: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: Fri Jun 20 16:40:21 EDT 2025

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

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

Back to the top