Vertical scroll: locking position |
Post Reply |
Author | |
oslsrl
Newbie Joined: 19 June 2013 Status: Offline Points: 8 |
Post Options
Thanks(0)
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |