I am not able to center the Grid column captions. I have the following CSS:
.text-align-center { text-align: center; }
I am setting the style like so:
[code]
HeaderRow headerRow = countSummaryGrid.getDefaultHeaderRow();
HeaderCell testCycleHeaderCell = headerRow.getCell(“Test Cycle”);
testCycleHeaderCell.setStyleName(“text-align-center”);
testCycleHeaderCell.setHtml(“Test Cycle”);
[/code]The caption is not centering. However, if I do the following in the footer, it does get centered:
[code]
FooterRow footerRow = countSummaryGrid.getFooterRow(0);
FooterCell totalsFooterCell = footerRow.getCell(“Test Cycle”);
totalsFooterCell.setStyleName(“text-align-center”);
totalsFooterCell.setHtml(“Totals:”);
[/code]Why would it work for the footer but not the header?
Thanks,
Steve