<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : HOWTO: Colorize group rows</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : HOWTO: Colorize group rows]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 12:45:31 +0000</pubDate>
  <lastBuildDate>Thu, 18 Dec 2008 17:16:20 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12970</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[HOWTO: Colorize group rows : OK!Found the solution myself....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12970&amp;PID=43794&amp;title=howto-colorize-group-rows#43794</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 12970<br /><strong>Posted:</strong> 18 December 2008 at 5:16pm<br /><br />OK!<br>Found the solution myself. Had to do with the if statement used to determine if the color should be applied.<br><br>]]>
   </description>
   <pubDate>Thu, 18 Dec 2008 17:16:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12970&amp;PID=43794&amp;title=howto-colorize-group-rows#43794</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Colorize group rows : Hi;I try to set different colors...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12970&amp;PID=43791&amp;title=howto-colorize-group-rows#43791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 12970<br /><strong>Posted:</strong> 18 December 2008 at 4:31pm<br /><br />Hi;<br>I try to set different colors on group rows. So I overwrite CXTPReportControl::GetItemMetrics() and set the color when a group row is detected. Everything works fine, except when the control initially does not have the input focus. In this case, the group row is still drawn with default colors.<br><br>My code looks like this:<br><br><table width="99%"><tr><td><pre class="BBcode">void CXRReportConfirmReportCtrl::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics) {<br>&nbsp;&nbsp;&nbsp; if (pDrawArgs-&gt;pRow-&gt;IsGroupRow()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPReportGroupRow* pRow=reinterpret_cast&lt;CXTPReportGroupRow*&gt;(pDrawArgs-&gt;pRow);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!pRow-&gt;IsSelected() &amp;&amp; pRow-&gt;GetGroupLevel()==0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrBackground=RGB(238, 199, 81);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}</pre></td></tr></table><br><br>Any ideas?<br>]]>
   </description>
   <pubDate>Thu, 18 Dec 2008 16:31:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12970&amp;PID=43791&amp;title=howto-colorize-group-rows#43791</guid>
  </item> 
 </channel>
</rss>