Print Page | Close Window

Vertical scroll: locking position

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22990
Printed Date: 19 April 2024 at 3:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Vertical scroll: locking position
Posted By: oslsrl
Subject: Vertical scroll: locking position
Date Posted: 06 April 2016 at 12:18pm
Hi,
can you help me to solve my problem?
I wrote a VB6 application with ReportControl object.

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.
Now I select that record (at Index -th position) and I DELETE it.
I have two needs:
1) I want the previous record (the 149th) is selected after that deletion - SOLVED using
    For Each element In repCont.Records
      If element.Index = Index - 1 Then
        repCont.FocusedRow = repCont.Rows.FindRow(element)
          Exit For
      End If
    Next element


2) I need the reportcontrol DOESN'T SCROLL in this operation, just the deleted record disappears!!

At the present the previous record is correctly selected, I'm still in 6th page, and it's ok, but  the focused row SCROLLS at the bottom of the page, even if the original position was in the top part of the control.

My customer says "the list moves and I feel confused: Solve it !!!"
I experimented ScrollModeV property, but with no luck...
Can you hep me?
Thanks,
Luca



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net