[SOLVED] Does simple way to set cell backcolor? |
Post Reply |
Author | |
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 29 November 2011 at 10:22pm |
I want to set column(3) backcolor to RED.
... Item = Record.AddItem "xxxxxxxxxx" Item.BackColor = vbRED Is any smple way to do this? Like this: |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
You mean simpler than Item.Backcolor = vbRed?
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Easiest way is to set BackColor in BeforeDrawRow event
Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
Select Case Item.Index Case 1 Metrics.BackColor = vbRed Case 2 Metrics.BackColor = vbYellow Case 3
....
End Select End Sub Voila
|
|
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.... |
|
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
thx Aaron.
|
|
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 |