Print Page | Close Window

Colour ROW based in value in Item

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=5538
Printed Date: 03 July 2025 at 7:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Colour ROW based in value in Item
Posted By: LeeHayton
Subject: Colour ROW based in value in Item
Date Posted: 16 November 2006 at 11:03am
How can I change the Row.BackColor when I have a value > 0 in a RowItem?
 
I know you use the BeforeDrawRow(Row, Item) function but after I have enumerated through a few items and then find the value > 0 how do I change the whole row?
 
Thanks
Lee



Replies:
Posted By: SuperMario
Date Posted: 16 November 2006 at 1:54pm
I recommend maybe setting a flag as you populate\add data to records if you added any value greater than 0, then in beforedrawrow you can just say if bValueGreaterThanZero ....



Posted By: LeeHayton
Date Posted: 17 November 2006 at 3:29am
I know what you mean - I might have to do that.  Thanks
 
It's a shame you can't just refer to the row at any point - especially when the row parameter is available.



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