Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Book of vaadin - Grid - Column captions
Hi,
Book of vaadin says for Grids Column captions:
This is equivalent to setting it with setText() for the header cell; the HeaderCell also allows setting the caption in HTML or as a component, as well as styling it, as described later in Header and Footer.
I think that's not fully true.
Column caption is initially taken from the container and can be modified via
column.setHeaderCaption
Afterwards the column header shows the new caption and the column list (to show/hide columns in the header) also contains the new header caption.
If I use
HeaderRow mainHeader = grid.getDefaultHeaderRow();
mainHeader.getCell("firstname").setText("First Name");
as mentioned later for Header and Footer, the new text "First Name" is NOT shown in the column list. Instead, you can read "firstname".
I've tested this with vaadin 7.6.7
Can this be confirmed?
Best regards,
Erik