<?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 : Relationship between Rows and Records</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Relationship between Rows and Records]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 07:10:56 +0000</pubDate>
  <lastBuildDate>Tue, 29 Sep 2009 19:32:53 +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=15255</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[Relationship between Rows and Records : &amp;#034;Finds row corresponded with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53535&amp;title=relationship-between-rows-and-records#53535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15255<br /><strong>Posted:</strong> 29 September 2009 at 7:32pm<br /><br /><P>"Finds row corresponded with specified record" -&nbsp;ReportRow* FindRow(IReportRecord* Record)</P><FONT size=2><P>CXTPReportRow* CXTPReportRows::Find(CXTPReportRecord* pRecord) {</P><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0; i &lt; (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2>) m_arrRows.GetSize(); i++) {</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_arrRows.GetAt(i)-&gt;GetRecord() == pRecord) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> m_arrRows.GetAt(i); }</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> 0; }</P><DIV><P>"Finds row corresponded with specified record (throughout the tree)"&nbsp; - ReportRow* FindRowInTree(IReportRecord* Record)</P></DIV><DIV>CXTPReportRow* CXTPReportRows::FindInTree(CXTPReportRecord* pRecord) {</DIV><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0; i &lt; (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2>) m_arrRows.GetSize(); i++) {</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_arrRows.GetAt(i)-&gt;GetRecord() == pRecord)&nbsp; </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> m_arrRows.GetAt(i);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_arrRows.GetAt(i)-&gt;HasChildren()) { </P><DIV>CXTPReportRow* pRow = m_arrRows.GetAt(i)-&gt;GetChilds()-&gt;FindInTree(pRecord);</DIV><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pRow) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> pRow; }</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> 0; }</P></FONT>]]>
   </description>
   <pubDate>Tue, 29 Sep 2009 19:32:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53535&amp;title=relationship-between-rows-and-records#53535</guid>
  </item> 
  <item>
   <title><![CDATA[Relationship between Rows and Records : Does anyone know how ReportControl.Rows.FindRow(Record)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53516&amp;title=relationship-between-rows-and-records#53516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5211">Ares</a><br /><strong>Subject:</strong> 15255<br /><strong>Posted:</strong> 29 September 2009 at 4:53am<br /><br />Does anyone know how <i><b>ReportControl.Rows.FindRow(Record)</b></i> works? Is this realy a search (complex when using many, many rows/records) or does it use some kind of index or directory?<br><br><br>]]>
   </description>
   <pubDate>Tue, 29 Sep 2009 04:53:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53516&amp;title=relationship-between-rows-and-records#53516</guid>
  </item> 
  <item>
   <title><![CDATA[Relationship between Rows and Records : you can have rows that don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53512&amp;title=relationship-between-rows-and-records#53512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 15255<br /><strong>Posted:</strong> 29 September 2009 at 1:04am<br /><br />you can have rows that don't have records - e.g. group header rows.]]>
   </description>
   <pubDate>Tue, 29 Sep 2009 01:04:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53512&amp;title=relationship-between-rows-and-records#53512</guid>
  </item> 
  <item>
   <title><![CDATA[Relationship between Rows and Records : As far as I know, the ReportRecord...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53499&amp;title=relationship-between-rows-and-records#53499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 15255<br /><strong>Posted:</strong> 28 September 2009 at 11:36am<br /><br />As far as I know, the ReportRecord object is just a collection of ReportRecordItems. It should probably be named Items (but too late for that now), so where we have:<br /><br />Row.Record(n)  'as ReportRecordItem<br /><br />can be thought of as:<br /><br />Row.Items(n)<br /><br /><br />It's further confused by not having a Rows.Add method. As you know you add a Row by adding a Record (which is just a collection of Items). A bit weird I think but again, probably too late to do anything about it now.<br /><br />You can use the ReportControl.Rows.FindRow(Record) method to get the row for a record. Again, a bit weird. Maybe just having Record.Parent would be better.<br /><br />I expect you're seeing Rows count at zero because you have not called ReportControl.Populate yet.]]>
   </description>
   <pubDate>Mon, 28 Sep 2009 11:36:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53499&amp;title=relationship-between-rows-and-records#53499</guid>
  </item> 
  <item>
   <title><![CDATA[Relationship between Rows and Records : Hi!I am just trying out the Report...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53483&amp;title=relationship-between-rows-and-records#53483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5211">Ares</a><br /><strong>Subject:</strong> 15255<br /><strong>Posted:</strong> 28 September 2009 at 6:39am<br /><br />Hi!<br><br>I am just trying out the Report Control and I was not able to figure out the releationship between rows and records. <br><br>As I understood:<br>- Each row has ONE record. <br>- Each records holds on or more RecordItems representing the cells of each row. <br>- There is no Add methode for rows. Rows are added by using ReportControl.Records.Add(...)<br><br>What is the reason for the seperation of rows and records? Is there an easy and quick way to find the correspondig row object to a record object without searching all rows?<br><br>I have used the following procedure to add a row/record. This works fine but both messages show that ReportControl.Rows is still empty. How can that be?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void AddItem(Object obj) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(ReportControl.Rows.Count.ToString()); // --&gt; 0<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportRecord newRecord = ReportControl.Records.Add();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetRecordData(newRecord, obj);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(mailListReport.Rows.Count.ToString()); // --&gt; 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>]]>
   </description>
   <pubDate>Mon, 28 Sep 2009 06:39:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15255&amp;PID=53483&amp;title=relationship-between-rows-and-records#53483</guid>
  </item> 
 </channel>
</rss>