Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Vertical scroll: locking position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Vertical scroll: locking position

 Post Reply Post Reply
Author
Message
oslsrl View Drop Down
Newbie
Newbie


Joined: 19 June 2013
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote oslsrl Quote  Post ReplyReply Direct Link To This Post Topic: Vertical scroll: locking position
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.