I want to be able to change the font and background color of a group header when it is expanded. I have tried the GroupByColumnHeaderAppearance but it doesn't seem to do anything.
Any help would be appreciated.
Hi,
I'm not sure I understand what you mean. A group header is not expandable, it's a header that contains other column headers.
GroupByColumnHeaderAppearance applies to the GroupByButton of the column in the GroupByBox. So it's basically a representation of the column header.
It sounds like you are trying to color a GroupByRow. So the way to do this would be in the InitializeGroupByRow event and set the Appearance property on the row itself.
Please refer to this image.Screenshot
Yeah, as I thought, that's a GroupByRow.
Thanks Mike, I had only one value Grouped showing and it wasn't changing. With more than one it shows up the same as your image. I guess i must be trying to change the selected backcolor. Thanks for all your help.
When I try this same line of code, it changes the color of the GroupByRow, in addition to the GroupByRowConnector area (the empty space to the left of the actual rows and under the GroupByRow).
I was under the impression that you only wanted to change the color of a single GroupByRow, but sice there is no 'if' statement here, it looks like maybe you just want all GroupByRows. If that's the case, it wouldbe better to set:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.GroupByRowAppearance.BackColor = Color.Red; }
'e.Row.Appearance.BackColor = Color.Red --> creates a red bar on the left hand side of the gridEnd Sub
I cannot find the right Appearance to change for the life of me. I know we are in the right area because the DescriptionWithSummaries returns the right value but where is the property to change that font color and stuff?
I'm spent all the time I can on such a small detail and must move on. So if you have a solution, that is great otherwise I will leave this and continue on with more important aspects.
Thanks for all your help Mike. I really appreciate it.