User (Old forums)MemberNovember 19, 2004 at 11:15 amPost count: 23064
I have a grid with groups and sub groups (up to 6 levels).
Now I paint the groups in different colors according their level in the grid.
My question is: Can I paint the Cells in the GroupByRow in different colors,
according to depth level in the hirarcy of groups like in the grid.
I tried the following:
Dim mCells() as Xceed.Grid.GroupByRow.GroupByCell = MyGroupByRow.GetCells()
But all properties in mCells are Readonly and I only can set the backcolor for all
cells and not individual.
Is there a trick or workaround ?
Thanks in Advance
Imported from legacy forums. Posted by robert (had 5151 views)Xceed SupportMemberDecember 14, 2004 at 5:10 pmPost count: 5658
No, there is no way to have different color for different cell in the GroupByRow. No clean work around exist to be able to do that. The only way will be to override the PaintForeground and repaint the cell the way you want at the same location that is returned by the GetCells() method.
Imported from legacy forums. Posted by Francois (had 396 views)User (Old forums)MemberDecember 16, 2004 at 4:14 pmPost count: 23064
it’s a pity to hear this.
But anyway now I have sureness that theres no way,
an I don’t need to try ir anymore.
Thanks for your statement.
Imported from legacy forums. Posted by robert (had 400 views)User (Old forums)MemberAugust 22, 2005 at 3:43 amPost count: 23064
Hi Im new here so can u just tell me how to set color for groups alternately.
Imported from legacy forums. Posted by prem_rajani (had 322 views)User (Old forums)MemberAugust 22, 2005 at 4:31 amPost count: 23064
when you only want to set the color of a group in the grid part (and not in the GroupByRow part) you can simply change the style by using the following properties
gridcontrol1.Groups(x).BackColor = …
gridcontrol1.Groups(x).ForeColor = …
gridcontrol1.Groups(x).Font = …
Imported from legacy forums. Posted by robert (had 568 views)User (Old forums)MemberAugust 22, 2005 at 5:05 amPost count: 23064
Hi kleinR thanks for quick response. What u have replied is to set a group individually, which I know it. What I meant is how to set it alternateviley.
Dim group As New Group
group.GroupBy = “Table”
Using this code I get my data listed as a group. Suppose there are 4 groups, then first group should be lightblue, second should be lightgray, third again lightblue and fourth lightgray. Hope you are able to understand what I’m trying to say?
Imported from legacy forums. Posted by prem_rajani (had 491 views)User (Old forums)MemberAugust 22, 2005 at 6:53 amPost count: 23064
- You must be logged in to reply to this topic.