Skip to Content
avatar image
Former Member

how to set table alternating color

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 16, 2007 at 08:36 AM

    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:

    problem-with-table-design-in-2004s

    Regards,

    Jhansi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2007 at 08:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2007 at 08:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded