Print Page | Close Window

[SOLVED] Group Row Backcolor

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16288
Printed Date: 15 November 2024 at 9:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Group Row Backcolor
Posted By: jpbro
Subject: [SOLVED] Group Row Backcolor
Date Posted: 26 February 2010 at 12:09pm
I see a PaintManager.GroupForecolor property, but not a corresponding GroupBackcolor property. Is it possible to change the background color of a group row?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: SuperMario
Date Posted: 26 February 2010 at 12:49pm
You have this:

    wndReportControl.PaintManager.ShadeGroupHeadings = True
    wndReportControl.PaintManager.GroupShadeBackColor = vbRed
    wndReportControl.PaintManager.GroupShadeBorderColor = vbGreen

Or else you have to catch it in BeforeDrawRow:

Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
      
    If Row.GroupRow Then
        Metrics.BackColor = vbRed
    End If

End Sub


Posted By: jpbro
Date Posted: 26 February 2010 at 12:53pm
Great thanks alot! I missed the .ShadeGroupHeadings = True.




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net