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
Post a Comment