Unfortunately this does not work for the foreground color. It seems that the color style can not be inherited from the <div> to the <table>. I have tried to use and override the GridViewConfig.getRowStyle(...). But the class is only added in the div, and not in the contained table.