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
250
IsAlternate not alternating
posted

I would like to have 2 different colors for the alternate row color in one grid (only 1 band).

For rows of type X I use the value assigned to :

this.ultraGrid1.DisplayLayout.Override.RowAlternateAppearance.BackColor

But for rows of type Y I am trying to override this using the initialize row event...I try to do this

// first test for type Y row...
if (row.IsAlternate)

 {  
      row.Appearance.BackColor = Color.Green; 
}

However, when I view the results, the type Y rows do not alternate, they clump up in 2, 3 or more green rows in sequence.  

Is there anything I am doing wrong here?

Parents Reply Children
No Data