// update grid to match number of rows...
table.resizeRows(requiredGridCount);
// if grid had a few rows added add even/odd styles to them...
final RowFormatter rowFormatter = table.getRowFormatter();
final String evenRowStyle = this.getEvenRowStyle();
final String oddRowStyle = this.getOddRowStyle();
final String sortableColumnStyle = this.getSortableColumnStyle();
final String sortedColumnStyle = this.getSortedColumnStyle();
for (int row = gridRowCount; row < requiredGridCount; row++) {
final String style = ((row & 1) == 1) ? evenRowStyle : oddRowStyle;
rowFormatter.addStyleName(row, style);
final CellFormatter cellFormatter = table.getCellFormatter();
final int sortedColumn = this.getSortedColumn();
for (int column = 0; column < columnCount; column++) {