Hi,
I'm using groupby box in the runtime (in design time it is set as hidden = true). I group the grid based on a column and set summaries to using
e.Layout.Bands[0].Summaries.Add() method..
I want to format the groupby row appearance. I tried setting
grid.DisplayLayout.GroupByBox.Appearance.BackColor = Color.LightSteelBlue;
grid.DisplayLayout.GroupByBox.BandLabelAppearance.BackColor =Color.LightSteelBlue;
grid.DisplayLayout.GroupByBox.ButtonBorderStyle = UIElementBorderStyle.Rounded3;
But nothing takes effect.
Any help is appreciated!
Thanks.,
Yeah., that worked. I had set summaries and wanted to format that. I got it by setting the display format of the summary setting.. Thanks!
The GroupByBox is a box at the top of the grid where users can drop columns to group them.
It sounds like what you want to do is color the GroupByRows, which are the rows that appear in the grid for each group of data. So you want to use the GroupByRowAppearance or perhaps handle the InitializeGroupByRow event and set the Appearance on the individual row.
Hi, I think you should use some of the appearance properties in Bands and override them:Something like: this.grid.DisplayLayout.Bands[0].Override.GroupByColumnAppearance.BackColor = Color. LightSteelBlue; this.grid.DisplayLayout.Bands[0].Override.GroupByColumnHeaderAppearance.BackColor = Color. LightSteelBlue; this.grid.DisplayLayout.Bands[0].Override.GroupByColumnHeaderAppearance.BackColor = Color. LightSteelBlue; this.grid.DisplayLayout.Bands[0].Override.GroupByRowAppearance.BackColor = Color. LightSteelBlue;I hope this helps.Sincerely,Dimi GinevaDeveloper Support EngineerInfragistics, Inc.