[SOLVED] How to change Backcolor of Group-Row?
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=18027
Printed Date: 27 September 2024 at 12:06pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: [SOLVED] How to change Backcolor of Group-Row?
Posted By: Jebo
Subject: [SOLVED] How to change Backcolor of Group-Row?
Date Posted: 09 March 2011 at 2:12pm
Hello,
please how can I change the Color of this Row (Group-Row?):
|
Replies:
Posted By: jpbro
Date Posted: 09 March 2011 at 2:33pm
I thought there might be a PaintManager.GroupRowBackcolor property, but no luck. You can use the BeforeDrawRow event like this though:
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
------------- Product: Xtreme SuitePro (ActiveX) version 16.2.6 Platform: Windows XP - SP3
Language: Visual Basic 6.0 SP6
|
Posted By: jpbro
Date Posted: 09 March 2011 at 2:34pm
Note that you must call wndreportcontrol.SetCustomDraw xtpCustomBeforeDrawRow for this to work.
------------- Product: Xtreme SuitePro (ActiveX) version 16.2.6 Platform: Windows XP - SP3
Language: Visual Basic 6.0 SP6
|
Posted By: Peter59
Date Posted: 09 March 2011 at 2:55pm
Why doing it the easy way?
.ShadeGroupHeadings = True .GroupShadeBackColor = RGB(255, 128, 128)
|
See attached sample. uploads/3156/ReportControl_Colored_Group_Rows.zip - uploads/3156/ReportControl_Colored_Group_Rows.zip
Peter
------------- Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6
|
Posted By: Jebo
Date Posted: 09 March 2011 at 5:39pm
Peter, Works PERFECT!
@jpbro & @Peter59 Thanks!!!
------------- [Sig removed by Admin: Signature can't exceed 40GB]
|
Posted By: jpbro
Date Posted: 09 March 2011 at 9:14pm
Thanks Peter - I was looking for a property with a different name ;)
I figured there had to be an easier way!
------------- Product: Xtreme SuitePro (ActiveX) version 16.2.6 Platform: Windows XP - SP3
Language: Visual Basic 6.0 SP6
|
|