So from the tutorial we have a grid with “First Name”, “Last Name” and so on as grid column hader name. The question is, how exactly, I can rename them?
I have tried things like:
grid.getDefaultHeaderRow().getCell("firstName").setHtml("The <u>amount</u>");
or
grid.getColumn("First Name").setHeaderCaption("Name");
and so on.
And evry time I got
NullPointerException
.
As I understand, I didn’t pass right column name to the grid get?
Please Help!