cancel
Showing results for 
Search instead for 
Did you mean: 

how to set table alternating color

Former Member
0 Kudos

how do i set the properties of table with alternating color

properties :

design : alternating

it is like normal table , although i have change the properties of design to alternating.....

pls advice

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Yzme,

When you change the Table Design propety to "<b>alternate</b>", change the <b>readOnly </b>property to <b>"true</b>". Then the table will display the alternate colors but the table will be read only.

Refer to the following thread also:

Regards,

Jhansi

Answers (2)

Answers (2)

Former Member
0 Kudos

I don't know if you are trying to create a dynamic form but if your code is into a FOR I have this solution.

tcSeccion.createLayoutData(IWDGridData.class);

if (i % 4 == 0 || i % 4 == 3){

((IWDGridData)tcSeccion.getLayoutData()).setCellBackgroundDesign(WDCellBackgroundDesign.FILL2);

}

You can try to access into wdDoModifyView and modify the object inside.

Sorry for my English and Best regards

Former Member
0 Kudos

yzme,

Alternating and Transparanet designs are applied only when table is read-only, i.e. readOnly=true on Table control.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net