Page 1 of 1

Set visible columns of UITable

PostPosted: Wed Nov 29, 2017 3:35 pm
by johnit
How can I change the visible columns of a table?

I want to hide some columns.

Re: Set visible columns of UITable

PostPosted: Wed Nov 29, 2017 3:39 pm
by rjahn
Simply set the column view:

Code: Select all
databook.getRowDefinition().setColumnView(ITableControl.class,
                                          new ColumnView("NAME", "TYPE" ));


It's also possible to set

Code: Select all
databook.getRowDefinition().setColumnView(null, new ColumnView("NAME", "TYPE" ));

because null sets the default column view. If you set a specific class, only the column configuration for the specific class type will be set.