Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Switch background color row
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Switch background color row

 Post Reply Post Reply
Author
Message
MrPeter View Drop Down
Newbie
Newbie


Joined: 11 June 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrPeter Quote  Post ReplyReply Direct Link To This Post Topic: Switch background color row
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2009 at 1:46pm
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....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.