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

database - How many Observations in SAS Sample Data Output -

javascript - Feed FileReader from server side files -

ios - how to query based on pfobject/pfuser associated with another pfobject in parse.com? -