<?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 : Looping through ALL rows</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Looping through ALL rows]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 24 Jun 2026 20:01:50 +0000</pubDate>
  <lastBuildDate>Mon, 29 Nov 2010 05:43:45 +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=17610</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[Looping through ALL rows : As I understood the ReportControl,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61590&amp;title=looping-through-all-rows#61590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5586">Michael S.</a><br /><strong>Subject:</strong> 17610<br /><strong>Posted:</strong> 29 November 2010 at 5:43am<br /><br /><p>As I understood the ReportControl, the Rows collection always represents the visible rows in the control, with sorting, filtering, etc. applied.</p><p>If you want to process all your data in the control, being it visibile or not, you have to process the Records collection including the Childs collection for every record if Childs.Count &gt; 0. Remember, that the records aren't necessarily in the same order as the Rows. (It's a little bit like MVC.)</p>]]>
   </description>
   <pubDate>Mon, 29 Nov 2010 05:43:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61590&amp;title=looping-through-all-rows#61590</guid>
  </item> 
  <item>
   <title><![CDATA[Looping through ALL rows : Hi Aaron.   I hope they add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61587&amp;title=looping-through-all-rows#61587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 17610<br /><strong>Posted:</strong> 29 November 2010 at 4:03am<br /><br />Hi Aaron. <DIV>&nbsp;</DIV><DIV>I hope they add the childs in the next update, would make sense to me.</DIV><DIV>Interestinly wndReportControl.SelectedRows does include childs, but only if they are expanded</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Mark</DIV>]]>
   </description>
   <pubDate>Mon, 29 Nov 2010 04:03:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61587&amp;title=looping-through-all-rows#61587</guid>
  </item> 
  <item>
   <title><![CDATA[Looping through ALL rows :   markmark wrote:Thanks you Aaron....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61577&amp;title=looping-through-all-rows#61577</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17610<br /><strong>Posted:</strong> 28 November 2010 at 8:40am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by markmark" alt="Originally posted by markmark" style="vertical-align: text-bottom;" /> <strong>markmark wrote:</strong><br /><br />Thanks you Aaron. <DIV>&nbsp;</DIV><DIV>Its a shame it can't be done!</DIV><DIV>Where <FONT color=#009900>AllRecords </FONT>includes childs.</DIV><DIV><FONT color=#009900>&nbsp;For Each xtremeRecord In Me.wndReportControl.AllRecords</FONT></DIV><DIV><BR><FONT color=#009900>&nbsp;Next xtremeRecord</FONT></DIV><FONT color=#009900><DIV><FONT color=#000000>&#091;...&#093;<BR></FONT></DIV></FONT></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi Mark,</DIV><DIV>&nbsp;</DIV><DIV>First of all I didn't know that&nbsp;child records weren't part of Record collection because I never used parent/childs in RC. I'm glad I read your post again because I wanted to answer: just iterate Record collection instead of Row collection <img src="http://forum.codejock.com/smileys/smiley36.gif" height="17" width="17" border="0" alt="LOL" title="LOL" />&nbsp;btw I also benefit from such questions in&nbsp;forum, now I know this can't be done and I definitely don't use parent records and I will stick to my own design where adding&nbsp;ordinary records and assigning GroupCaptions to those records which I want to group&nbsp;(same as parent/childs <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" />)&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><strong>So, my next question to support: Why aren't childs, part of Record collection? We have HeaderRecords, FooterRecords&nbsp;and Records collection and none of these collections contains the childs of parent records....</strong>&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I will add this to my list and see what happens...</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 28 Nov 2010 08:40:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61577&amp;title=looping-through-all-rows#61577</guid>
  </item> 
  <item>
   <title><![CDATA[Looping through ALL rows : Thanks you Aaron.  Its a shame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61576&amp;title=looping-through-all-rows#61576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 17610<br /><strong>Posted:</strong> 28 November 2010 at 8:06am<br /><br />Thanks you Aaron.<DIV>&nbsp;</DIV><DIV>Its a shame it can't be done!</DIV><DIV>Where <FONT color=#009900>AllRecords </FONT>includes childs.</DIV><DIV><FONT color=#009900>&nbsp;For Each xtremeRecord In Me.wndReportControl.AllRecords</FONT></DIV><DIV><BR><FONT color=#009900>&nbsp;Next xtremeRecord</FONT></DIV><P><FONT color=#009900><FONT color=#000000>Again thanks for your help, this forum would be very dead without you!</FONT></P><DIV><FONT color=#000000>Mark<BR></FONT></DIV></FONT>]]>
   </description>
   <pubDate>Sun, 28 Nov 2010 08:06:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61576&amp;title=looping-through-all-rows#61576</guid>
  </item> 
  <item>
   <title><![CDATA[Looping through ALL rows : Hi,  You would expect that for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61574&amp;title=looping-through-all-rows#61574</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17610<br /><strong>Posted:</strong> 28 November 2010 at 3:16am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You would expect that for each loop would work on records but it doesn't... Well, you could create function and loop child records&nbsp;recursively, something like this:</DIV><DIV>&nbsp;</DIV><DIV>Private Function IterateReportCollection()<BR>&nbsp;&nbsp;&nbsp; Dim xtremeRecord As XtremeReportControl.ReportRecord<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; For Each xtremeRecord In Me.wndReportControl.Records<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#006600>'Checking goes here</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If xtremeRecord.Childs.Count &gt; 0 Then <FONT color=#006600>'found record with child(s), so&nbsp;first check the child(s)</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IterateChilds xtremeRecord<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; Next xtremeRecord<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</DIV><DIV>&nbsp;</DIV><DIV>Private Function IterateChilds(xtremeRecordParent As XtremeReportControl.ReportRecord)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim xtremeRecord As XtremeReportControl.ReportRecord<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For Each xtremeRecord In xtremeRecordParent.Childs<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#006600>'Checking goes here<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If xtremeRecord.Childs.Count &gt; 0 Then <FONT color=#006600>'found record with child(s), so&nbsp;first check the child(s)</FONT>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IterateChilds xtremeRecord<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; Next xtremeRecord&nbsp;&nbsp;&nbsp; </DIV><DIV><BR>End Function<BR></DIV><DIV>&nbsp;</DIV><DIV>Good luck <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 28 Nov 2010 03:16:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61574&amp;title=looping-through-all-rows#61574</guid>
  </item> 
  <item>
   <title><![CDATA[Looping through ALL rows :  Hi   Is there a nice simple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61572&amp;title=looping-through-all-rows#61572</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 17610<br /><strong>Posted:</strong> 27 November 2010 at 9:52am<br /><br /><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Hi <o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Is there a nice simple way that I can loop through all the rows on the grid.<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Even if there are Child items as well. or even lots of childs of child (a child is a parent item)<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>I note that wndReportControl.Rows.Count<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>changes if the parent is expanded, if its not the count doesn't include the childs.<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>So this is simple, but no good if a parent is closed up<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600>For lngRow = 0 To wndReportControl.Rows.Count - 1<o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>value = value<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>&amp; wndReportControl.Rows.Row(lngRow).Record.Item(2).Value<o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><o:p><FONT color=#006600 size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600>Next<o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>This method ignores child completely<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600>For Each rRecord In wndReportControl.Records<o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600>Next<o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>so you end up doing tests like,<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><FONT color=#006600>For Each rRecordChild In rRecord.Childs</P><DIV><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><o:p></o:p></FONT></FONT></FONT></P><FONT size=3><FONT face=Calibri><FONT color=#006600>Next<o:p></o:p></FONT></FONT></FONT></DIV><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Does any one know of a better way<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Many Thanks<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Mark<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-fareast-: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>]]>
   </description>
   <pubDate>Sat, 27 Nov 2010 09:52:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17610&amp;PID=61572&amp;title=looping-through-all-rows#61572</guid>
  </item> 
 </channel>
</rss>