<?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 : [SOLVED] GroupRow SumSub With SubTotals</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] GroupRow SumSub With SubTotals]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 07:50:55 +0000</pubDate>
  <lastBuildDate>Mon, 18 Oct 2010 03:22:56 +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=17313</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[[SOLVED] GroupRow SumSub With SubTotals : @ RJAMIN  The short answer is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60966&amp;title=solved-grouprow-sumsub-with-subtotals#60966</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 18 October 2010 at 3:22am<br /><br />@ RJAMIN<DIV>&nbsp;</DIV><DIV>The short answer is "no"! The requirement I had was for a static report were the report was grouped exactly as required with no need for further manipulation.</DIV>]]>
   </description>
   <pubDate>Mon, 18 Oct 2010 03:22:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60966&amp;title=solved-grouprow-sumsub-with-subtotals#60966</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals : Do you allow additional grouping...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60712&amp;title=solved-grouprow-sumsub-with-subtotals#60712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6402">RJAMIN</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 05 October 2010 at 4:03pm<br /><br /><P>Do you allow additional grouping or real-time grouping (User can drag and drop column to group by)?</P>]]>
   </description>
   <pubDate>Tue, 05 Oct 2010 16:03:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60712&amp;title=solved-grouprow-sumsub-with-subtotals#60712</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals : Hi,  Please add this types of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60583&amp;title=solved-grouprow-sumsub-with-subtotals#60583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6244">SHAN</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 29 September 2010 at 11:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Please add this&nbsp; types of Code&nbsp; in Code snipplet topic&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>This will help lot of Users to quickly view by topic....</DIV>]]>
   </description>
   <pubDate>Wed, 29 Sep 2010 11:57:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60583&amp;title=solved-grouprow-sumsub-with-subtotals#60583</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals :    Thanks Aaron!!!Using your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60538&amp;title=solved-grouprow-sumsub-with-subtotals#60538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 28 September 2010 at 4:53am<br /><br />Thanks Aaron!!!<br><br>Using your suggestion I have managed to resolve the issue I had with the Group Row SUMSUB calculation. <br><br><img src="uploads/2960/SUMSUB3.png" height="248" width="637" border="0" /><br><br>I had to overcome the FormatNumber issue too, so I will post the following code for anyone else who has had this issue in the past, present or future!<br><br><table width="99%"><tr><td><pre class="BBcode"><br><font color="#006633">' Required to fix the FormatNumber issue after the Group Row SUMSUB has been calculated</font><br><font color="#000099">Dim </font>bFormatNumber<font color="#000099"> As Boolean</font><br><br><font color="#006633">' First set the variable bFormatNumber = False before adding the records to the ReportControl, do NOT format the text using FormatNumber at this time!!!<br>' Once you have added records to the ReportControl, called ReportControl.Populate and added the code to display the Group Row SUMSUB calculation<br>' Then set bFormatNumber = True &amp; also ReportControl.SetFocus</font><br><br><font color="#000099">Private Sub</font> rpcGrid_BeforeDrawRow(<font color="#000099">ByVal </font>Row <font color="#000099">As </font>XtremeReportControl.IReportRow, <font color="#000099">ByVal </font>Item <font color="#000099">As </font> XtremeReportControl.IReportRecordItem, <font color="#000099">ByVal </font>Metrics <font color="#000099">As </font> XtremeReportControl.IReportRecordItemMetrics)<br><br>&nbsp;&nbsp;&nbsp; <font color="#006633">' Format Group Row Calculations</font><br>&nbsp;&nbsp;&nbsp; <font color="#000099">If </font>Row.GroupRow <font color="#000099">Then</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>sTextToFind <font color="#000099">As </font>String<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iPos = InStr(Metrics.Text, "&#091;9&#093;")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">If </font>iPos &gt; 0 <font color="#000099">Then</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sTextToFind = Mid$(Metrics.Text, iPos + 3, Len(Metrics.Text))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.Text = Replace$(Metrics.Text, sTextToFind, FormatNumber$(<font color="#000099">CDbl</font>(sTextToFind) / 2, 0))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">End </font><font color="#000099">If</font><br>&nbsp;&nbsp;&nbsp; <font color="#000099">End </font><font color="#000099">If</font><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#006633">' Format the rows to display the "," delimiter in the column with a numeric value</font><br>&nbsp;&nbsp;&nbsp; <font color="#000099">If </font>bFormatNumber <font color="#000099">Then</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Row.Record(9).Value = FormatNumber$(Row.Record(9).Value, 0)<br>&nbsp;&nbsp;&nbsp; <font color="#000099">End </font><font color="#000099">If</font><br><br><font color="#000099">End Sub</font><br></pre></td></tr></table><br><br><br>]]>
   </description>
   <pubDate>Tue, 28 Sep 2010 04:53:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60538&amp;title=solved-grouprow-sumsub-with-subtotals#60538</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals : Hi,  Use same event (BeforeDrawRow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60513&amp;title=solved-grouprow-sumsub-with-subtotals#60513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 27 September 2010 at 12:36pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Use same event (BeforeDrawRow event) and use Metrics object to show value. Metrics.Text supports Markup as well. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 27 Sep 2010 12:36:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60513&amp;title=solved-grouprow-sumsub-with-subtotals#60513</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals : Hi,You&amp;#039;re correct, the Subtotals...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60490&amp;title=solved-grouprow-sumsub-with-subtotals#60490</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 27 September 2010 at 5:04am<br /><br />Hi,<br><br>You're correct, the Subtotals are just an extra ReportItem that I use prior to adding any new data that does not match that of the previous record. Then I use the BeforeDrawRow to do the colouring, font bold &amp; underline.<br>]]>
   </description>
   <pubDate>Mon, 27 Sep 2010 05:04:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60490&amp;title=solved-grouprow-sumsub-with-subtotals#60490</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals : Hi,   How do you create the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60476&amp;title=solved-grouprow-sumsub-with-subtotals#60476</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 26 September 2010 at 5:58am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>How do you create the subtotals? Is it just reportitem? </DIV><DIV>Can you upload small demo?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 26 Sep 2010 05:58:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60476&amp;title=solved-grouprow-sumsub-with-subtotals#60476</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] GroupRow SumSub With SubTotals :       Hi,I have used the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60445&amp;title=solved-grouprow-sumsub-with-subtotals#60445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17313<br /><strong>Posted:</strong> 24 September 2010 at 7:44am<br /><br />Hi,<br><br>I have used the following code to correctly add a Total to the GroupRow column of my choice, I am also aware of the limitation of the calculation if the column numeric values contains a comma. <br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; Dim GroupRow As ReportGroupRow, Row As ReportRow<br><br>&nbsp;&nbsp;&nbsp; For i = 0 To rpcGrid.Rows.Count - 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Row = rpcGrid.Rows(i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Row.GroupRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set GroupRow = Row<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow.GroupFormat = "%.0f"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow.GroupFormula = "SUMSUB(C9:C10)"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow.GroupCaption = "x"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; rpcGrid.ReCalc True<br>&nbsp;&nbsp;&nbsp; rpcGrid.ReDraw<br></pre></td></tr></table><br><br>What I would like to know is if there is anyway in which to divide the GroupFormula by 2, or even loop through and only select the Rows required to add to the SUMSUB calculation? The reason I ask is that my child rows contain Sub Totals, therefore the SUMSUB calculation is doubling up the Total in the GroupRow.<br><br><img src="uploads/2960/SUMSUB2.png" height="304" width="644" border="0" /><br><br>I have tried to fix this but I have not yet found a solution to this issue.<br>]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 07:44:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17313&amp;PID=60445&amp;title=solved-grouprow-sumsub-with-subtotals#60445</guid>
  </item> 
 </channel>
</rss>