table redraw problem [message #289960] |
Mon, 15 August 2005 20:07  |
Eclipse User |
|
|
|
Originally posted by: kittyscalgary.yahoo.ca
Hi,everybody:
I use TableViewer and Table to show my data and want to add and remove
column dynanmically.
I tried to dispose the old table and create a new table for my
tableviewer,but nothing is shown.
So, how to show the result when I add or remove a column?
Is anyone familiar with this kind of stuff?
Thanks!
|
|
|
Re: table redraw problem [message #290334 is a reply to message #289960] |
Wed, 24 August 2005 01:26  |
Eclipse User |
|
|
|
You can reuse your already created table control, TableColumn.dispose() will
remove a column, and you can always add columns to your table. One caveat is
that TableLayout will lay out your table only once, so you may need to
write a custom layout to handle column additions and removals.
Cheers,
Vladimir.
"kittys" <kittyscalgary@yahoo.ca> wrote in message
news:ddraog$p46$1@news.eclipse.org...
> Hi,everybody:
>
> I use TableViewer and Table to show my data and want to add and remove
> column dynanmically.
>
> I tried to dispose the old table and create a new table for my
> tableviewer,but nothing is shown.
>
> So, how to show the result when I add or remove a column?
>
> Is anyone familiar with this kind of stuff?
>
> Thanks!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06557 seconds