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
1130
VisibleHeaders and InitializeRow event
posted

Hi,

 I'm hitting a problem trying to initialize rows.  In my initialize rows event handler, I look at VisibleHeaders under certain conditions.  Basically, I color the row's background yellow, then loop for some number of times turning the cell's background white, starting from the left and moving right.

 The problem is that the first IntializeRow event fires, and VisibleHeaders is dirty, and contains no items.  This is cause an exception in my code.  How can I get around this?

 Thanks

Andy 

Parents
  • 469350
    Offline posted

     Hi Andy,

        If the grid hasn't painted yet, then the VisibleHeaders will not have been created. Have you tried just checking for null?  

Reply Children