<?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 : Virtual Report Control and MoveFirstRow</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Virtual Report Control and MoveFirstRow]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 18:35:02 +0000</pubDate>
  <lastBuildDate>Tue, 20 Oct 2009 21:54:05 +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=15403</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[Virtual Report Control and MoveFirstRow : Please try this code - I can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15403&amp;PID=54034&amp;title=virtual-report-control-and-movefirstrow#54034</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15403<br /><strong>Posted:</strong> 20 October 2009 at 9:54pm<br /><br />Please try this code - I can't SVN it until 13.2 will be official released but you can build your own dll now and test your case:<DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPReportNavigator::MoveFirstRow(BOOL bShiftKey, BOOL bControlKey) {</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_pReportControl) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pReportControl-&gt;IsMultiSelectionMode()) bControlKey = TRUE;</P><P>CXTPReportRow* pFirst = m_pReportControl-&gt;m_pRows-&gt;GetAt(0);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pReportControl-&gt;IsVirtualMode()) m_pReportControl-&gt;SetFocusedRow(pFirst, bShiftKey, bControlKey);</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pFirst != m_pReportControl-&gt;GetFocusedRow()) m_pReportControl-&gt;SetFocusedRow(pFirst, bShiftKey, bControlKey);</P><P>m_pReportControl-&gt;UnselectGroupRows();</P><P>}</P></FONT><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPReportNavigator::MoveLastRow(BOOL bShiftKey, BOOL bControlKey) {</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_pReportControl) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pReportControl-&gt;IsMultiSelectionMode()) bControlKey = TRUE;</P><P>CXTPReportRow* pLast = m_pReportControl-&gt;m_pRows-&gt;GetAt(m_pReportControl-&gt;m_pRows-&gt;GetCount() - 1);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pReportControl-&gt;IsVirtualMode()) m_pReportControl-&gt;SetFocusedRow(pLast, bShiftKey, bControlKey);</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pLast != m_pReportControl-&gt;GetFocusedRow()) m_pReportControl-&gt;SetFocusedRow(pLast, bShiftKey, bControlKey);</P><P>m_pReportControl-&gt;UnselectGroupRows();</P><P>}</P><DIV>I don't put this piece in <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportC&#111;ntrolMFCUpdated.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar</A>&nbsp;but other code is up to date to build dll</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 21:54:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15403&amp;PID=54034&amp;title=virtual-report-control-and-movefirstrow#54034</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual Report Control and MoveFirstRow : Sure it does not works in virtualmode...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15403&amp;PID=54030&amp;title=virtual-report-control-and-movefirstrow#54030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15403<br /><strong>Posted:</strong> 20 October 2009 at 3:43pm<br /><br />Sure it does not works in virtualmode - but you can use PageUp - PageDown navigation. <DIV>Need to add&nbsp;special virtual mode navigation for cases: VK_HOME and VK_END</DIV>]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 15:43:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15403&amp;PID=54030&amp;title=virtual-report-control-and-movefirstrow#54030</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual Report Control and MoveFirstRow : We&amp;#039;re having trouble using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15403&amp;PID=54027&amp;title=virtual-report-control-and-movefirstrow#54027</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3787">Danlar</a><br /><strong>Subject:</strong> 15403<br /><strong>Posted:</strong> 20 October 2009 at 1:51pm<br /><br />We're having trouble using CXTPReportNavigator::MoveFirstRow with a report control in virtual mode. <br /><br />In MoveFirstRow (and MoveLastRow), you immediately check first to see if the currently focused row is already the first (or last) row. It looks like a virtual report control always returns the same virtual row object, and so when you compare the address between the result of GetAt(0) and the focused row, they are always the same. <br /><br />Is this a bug, or is there some other method I use for selecting the First (or Last) row in the report?<br /><br />_Dan<br /><br />PS We're using version 13.1.0]]>
   </description>
   <pubDate>Tue, 20 Oct 2009 13:51:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15403&amp;PID=54027&amp;title=virtual-report-control-and-movefirstrow#54027</guid>
  </item> 
 </channel>
</rss>