java - How can you change the name of a colum in a GWT DataGrid? -


i have gwt datagrid static columns. while know can remove columns , add them different names, possible change column's name directly?

update:

i don't understand what's going on. per thomas boyer's answer below, see in docs .getheader() inherited abstractcelltable public method, compiler says no such method exists datagrid.

grid created:

datagrid mygrid = new datagrid<mytype>(integer.max_value, gwt.<datagridresources2> create(datagridresources2.class)); 

and fails compile:

header<myheaderclass> header = mygrid.getheader(0); 

compiler says no such method exists type datagrid.

you can use getheader method of datagrid obtain column header, ,

getcell().setvalue 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -