Switch background color row |
Post Reply |
Author | |
MrPeter
Newbie Joined: 11 June 2009 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 11 June 2009 at 8:51am |
Hello all.
Is it possible to set a background color for a row that is turned on/off every row ?
Example: first row has BGcolor blue, next row has white, next row has blue, next row white, ...
I can set this while loading up data, but when i sort through the column titles then the records are mixed up and i get a wrong result.
So does the report control support this kind of BGcolor switching ?
Thanks in advance for any help
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
You can use BeforeDrawRow event for this:
Private Sub wndReportControlMerchants_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
If (Row.Index Mod 2 = 0) Then Metrics.BackColor = RGB(225, 225, 225) End If End Sub |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |