java - gwt grid header align -


i used gwt 2.5.1, java 1.6.

when used grid, want centerd grid header. no data, header.

source

  .getgrid().getcolumnmodel().getcolumns().get(i).setalignment(horizontalalignment.center); 

but, both aligned.

so, can do?

thank you.

use dom inspector , fish out style corresponds header cell. if named column "test" style may named "x-grid3-td-test".

add following stylesheet:

.x-grid3-td-test* { text-align: center; } 

Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -