|Re: How to modify Table columns dynamically [message #445777 is a reply to message #445765]
||Thu, 11 November 2004 01:29
Originally posted by: nickthat.yahoo.com|
I think what you will need to do is call Table.getColumns to get your
array of columns. Then iterate through the array and call dispose on each
column. Then you will need to recreate the new set of columns.
John Wang wrote:
> I'd like to build a table/tableviewer that displays the result of SQL
> query. Each time the result will return different set of table columns. I
> used a table/tableviewer to display the result, it needs to dynamically
> change the table columns for each resultset. However, I can not find a
> method in Table or TableViewer to modify the TableColumn inside. Also the
> columns is a private member in Table.class and is invisible even I
> inherits from it.
> Do I have to recreat a new tableviewer everytime a resultset is returned?
> Thanks a lot,
Powered by FUDForum
. Page generated in 0.01431 seconds