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
What do you mean by "an object not initialised event". Do you mean an exception? What's the exception? On what of code is it occurring?
Okay, tried linking into the InitialiseGroupByRow event, which seems a bit more promising. When I try to set the BackColor property I'm getting an object not initialised event though. Should I be doing something different for a group by row?
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 ;-) )
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.