<?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] Navigator.MoveToRow does not work</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] Navigator.MoveToRow does not work]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 00:49:24 +0000</pubDate>
  <lastBuildDate>Mon, 16 Aug 2010 03:16:50 +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=17107</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] Navigator.MoveToRow does not work :  Nice one Aaron!!!Using your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17107&amp;PID=59778&amp;title=solved-navigator-movetorow-does-not-work#59778</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17107<br /><strong>Posted:</strong> 16 August 2010 at 3:16am<br /><br />Nice one Aaron!!!<br><br>Using your suggestion I first set the grid to scroll to the last record in the grid before scrolling to the row in question. This allows the record to be at the top of the ReportControl, tested this with expanding the tree and all works perfectly.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">With </font>rpcGrid<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#006633">' Find the Last Row</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>LastRow = .Rows.FindRowInTree(LastRecord)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Navigator.MoveToRow LastRow.Index, <font color="#000099">False</font>, <font color="#000099">True</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#006633">' Find the First Forecasted Product Row</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Row = .Rows.FindRowInTree(Record)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Navigator.MoveToRow Row.Index, <font color="#000099">False</font>, <font color="#000099">True</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SelectedRows.DeleteAll<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ReDraw<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000099">End With</font><br></pre></td></tr></table><br><br>I must admit... I tried this late on Friday before I got your reply, but it was late in the day and all I could think about was the weekend!!! lol<br><br>Thanks for the help.<br><br>]]>
   </description>
   <pubDate>Mon, 16 Aug 2010 03:16:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17107&amp;PID=59778&amp;title=solved-navigator-movetorow-does-not-work#59778</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Navigator.MoveToRow does not work : Hi,  Try this instead:  Dim...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17107&amp;PID=59764&amp;title=solved-navigator-movetorow-does-not-work#59764</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17107<br /><strong>Posted:</strong> 13 August 2010 at 10:45am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Try this instead:</DIV><DIV>&nbsp;</DIV><DIV>Dim rowToFind As ReportRow<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set <strong>rowToFind</strong> = Me.wndReportControl.Rows.FindRowInTree(Me.wndReportControl.Records(INDEX_OF_RECORD))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>rowToFind</strong>.EnsureVisible</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV><strong>OR</strong><BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; Set <strong>rowToFind</strong> = Me.wndReportControl.Rows.FindRowInTree(Me.wndReportControl.Records(INDEX_OF_RECORD))<BR>&nbsp;&nbsp;&nbsp;&nbsp;Me.wndReportControl.Navigator.MoveToRow <strong>rowToFind</strong>.Index</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 13 Aug 2010 10:45:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17107&amp;PID=59764&amp;title=solved-navigator-movetorow-does-not-work#59764</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Navigator.MoveToRow does not work :        Subject Continued:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17107&amp;PID=59760&amp;title=solved-navigator-movetorow-does-not-work#59760</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17107<br /><strong>Posted:</strong> 13 August 2010 at 7:39am<br /><br />Subject Continued: "with the ReportControl using Grouping Column and Tree Column..."<br><br>Hi,<br><br>I have a requirement to scroll a ReportControl that has both a Grouping Column and a Tree Column to a specific row.<br><br>Using either "EnsureVisible" or "Navigator.MoveToRow" does work kind of! However the Grouping row seems to knock this out slightly and the moment I expand a few tree columns then try and use either of these to scroll to the row in question it does not scroll to the correct row! <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" /><br><br>To help you understand I have attached an image of my application below. In the image below you can clearly see the Grouping column and Tree columns are used and that the Highlighted Row is the row I have tried to scroll to. However this has scrolled to the wrong row due to the Grouping row heights I believe. If I then scroll up further and expand a few tree columns and then move to the row the result is worse!!!<br><br>I am using the Statusbar "Forecast Products" pane as a button to focus the users attention to the Forecasted Products in the ReportControl, however this functionality can't work using the "EnsureVisible" or "Navigator.MoveToRow" in combination with the Grouping Column and a Tree Column.<br><br><img src="uploads/20100813_075349_ScrollToRow.png" height="701" width="1123" border="0" /><br><br>Is there any method other than these two to scroll programmatically to a row?<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Fri, 13 Aug 2010 07:39:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17107&amp;PID=59760&amp;title=solved-navigator-movetorow-does-not-work#59760</guid>
  </item> 
 </channel>
</rss>