Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Regarding RowAlternating Appearance
posted

Hi, 

We are making use of alternating appearance in our wingrid. This is turned on through our style file. 

So what we gather is this alternate item appearance takes effect across each band, If say, I have 2 bands, the child band also shows the alternate row appearance effect.

What we want to achieve is child rows should have the same appearance as parent row. Right now, we copy all the appearance properties of parent row and set on the child row when row is initialized. The child band is programatically made not to have the alternate row appearance. Is there a cleaner way to achieve this? Is there an easier way for a row in a child band have the same appearance as the parent row.

Thanks

Parents
No Data
Reply
  • 2575
    Offline posted

    Hello Duncan,

    You are handling the situation correctly. The appearance should be set row by row in InitializeRow(). The advice I have is to not create new Appearance objects on each InitializeRow(); if you create an Appearance to use for each case of row and then set the row's Appearance to the appropriate one, this should improve your Grid's performance.

    Please look to Formatting and Appearance based Performance Improvement for similar tips on improving your UltraGrid's performance.

Children