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
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.
Hi,
My grid doesn't have multiple bands though, it has a single band and a group by box. When they group by the first column I'd like the group's header rows to be one colour, then when they add another column that group should be a different colour (or different shade at least - the 60s are long gone ;-) )