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
165
do not colour the unbound coulmns while colouring the rows
posted

Hi

I have a grid which  is bound to datasource. i have added a unbound column with checkbox style.I am background-colouring rows in the grid depending on the data conditions,in the InitliazeRow Event. I see that the background of the checkbox style column is also coloured.I dont want this to happen.ie this checkbox style unbound column should not have nay background colour.How to make this happen ? Thanks in advance

-Anusha

 

 

Parents
  • 37774
    posted

    Anusha,

    How are you setting the rows' or cells' appearances?  If you're setting the entire appearance on the row, then each of the cells are going to pick this up.  I'm not sure about the order of precedence offhand, but if setting the BackColor of the unbound column directly does not override the appearance set on the row, then you could certainly set the appearance of each cell of the unbound column in the InitializeRow event.  If you choose to do the latter, I'd recommend creating a single Appearance object and re-use it for each of these cells since it would be inefficient to create a new object each time InitializeRow fires.

    -Matt

Reply Children