Print Page | Close Window

Changing individual row colors

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=9166
Printed Date: 28 September 2024 at 6:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing individual row colors
Posted By: andrewg
Subject: Changing individual row colors
Date Posted: 21 December 2007 at 2:12pm
We need to change specific row colors to either red or yellow depending on their urgency. How is this accomplished in XTP?



Replies:
Posted By: sserge
Date Posted: 21 December 2007 at 5:33pm
In the regular sample see code for option "Automatic formatting sample".

You'll handle CMessageRecord::GetItemMetrics and depending on your urgency value will set a corresponding background:
pItemMetrics->clrBackground = RGB(...);

--
WBR,
Serge



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