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
1459
Different colours for group by headers at different levels
posted

What's the best way of doing this. We'd like to provide a bit of a visual cue to the user when all the groups are collapsed, as it's a bit visually unappealing by default. 

I'd like to be able to specify a different colour at the "Type" level to provide a better visual cue of the hierarchy

Parents
No Data
Reply
  • 9190
    Offline posted

    Hello,

    I will be happy to assist you with you question.

    I recommend using the InitializeRow event to change the row color for specific bands. To help demonstrate this, I have attached a sample and the code snippet found below:

      void ultraGrid1_InitializeRow(object sender, InitializeRowEventArgs e) { if (e.Row.Band.Index == 0) { e.Row.Appearance.BackColor = Color.Blue; } else { e.Row.Appearance.BackColor = Color.Red; } }

    
    

     

    Please let me know if you have any questions.

    ChildBandColorCAS-94153.zip
Children