<?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 : Vertical scroll: locking position</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Vertical scroll: locking position]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:17:14 +0000</pubDate>
  <lastBuildDate>Wed, 06 Apr 2016 12:18:03 +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=22990</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[Vertical scroll: locking position : Hi,can you help me to solve my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22990&amp;PID=74645&amp;title=vertical-scroll-locking-position#74645</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8108">oslsrl</a><br /><strong>Subject:</strong> 22990<br /><strong>Posted:</strong> 06 April 2016 at 12:18pm<br /><br />Hi,<div>can you help me to solve my problem?</div><div>I wrote a VB6 application with ReportControl object.</div><div><br></div><div>I loaded hundreds of records in my reportcontrol object (called repCont), so using my vertical scroll bar I can reach the eg. 150th element at page 6 of 30.</div><div>Now I select that record (at Index -th position) and I DELETE it.</div><div>I have two needs:</div><div>1) I want the previous record (the 149th) is selected after that deletion - SOLVED using</div><div>&nbsp; &nbsp; For Each element In repCont.Records</div><div>&nbsp; &nbsp; &nbsp; If element.Index = Index - 1 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; repCont.FocusedRow = repCont.Rows.FindRow(element)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit For</div><div>&nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; Next element</div><div><br></div><div><br></div><div>2) I need the reportcontrol DOESN'T SCROLL in this operation, just the deleted record disappears!!</div><div><br></div><div>At the present the previous record is correctly selected, I'm still in 6th page, and it's ok, but &nbsp;the focused row SCROLLS at the bottom of the page, even if the original position was in the top part of the control.</div><div><br></div><div>My customer says "the list moves and I feel confused: Solve it !!!"</div><div>I experimented ScrollModeV property, but with no luck...</div><div>Can you hep me?</div><div>Thanks,</div><div>Luca</div>]]>
   </description>
   <pubDate>Wed, 06 Apr 2016 12:18:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22990&amp;PID=74645&amp;title=vertical-scroll-locking-position#74645</guid>
  </item> 
 </channel>
</rss>