Table and setCellStyleGenerator

Hi Folks !

I’m still working with ItMill and I like it :slight_smile:
Today I have a question about table and setCellStyleGenerator. I’m currently using the style generator to apply a specific color on cells into my table. All works fine, but if user hide a column the style is not apply for some columns. In debug mode, when column is hidden, setCellStyleGenerator’s code is executed but doesn’t seem to be apply on table. If user unhide column style on cells is ok.
Do you have any idea about that ?

I’m alone with this problem ? :slight_smile:
I’m not sure if is it a bug or bad setCellStyleGenerator usage.
Thanks !

Hi Thomas,

I tested this and it seems the CellStyleGenerator mixes up the column indexes when the user hides a column and then applies styles to the wrong column.

Created ticket
#2208
for this issue.

Cheers,
Artur

Thanks Artur, I will prefer to discuss about this problem on forum before open a new Ticket on Trac. You have created ticket, thanks for that.