Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Table on swt


Hi,

It could be possible to make a "select COLNAME from SYSCAT.COLUMNS where TABNAME ='xxxx'" which will return a list of all columns of your table. then add dynamically columns to your table.

Hope it helps.

Regards,

Frederic


Francesca a écrit :
Hi,
I have a question for you about swt...I created a table in a view that contains several data... I used Connection class, Statement class,... and all standard classes for access to database.
I also named every headerColumns in static mode.
ex: TableColumn column1 = *new* TableColumn(table, SWT./NONE/);

        column1.setText(title);

        TableColumn column2 = *new* TableColumn(table, SWT./NONE/);

        column2.setText(title);

But I think that is a bad method: my table has a lot of columns!!! ...and if my tableHeader changes? There is a wizard/procedure/... that can load my table directly from db2? Sorry for my bad english and thanks :)
__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi
http://mail.yahoo.it
------------------------------------------------------------------------

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top