Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SOLVED: First Visible Row
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: First Visible Row

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: First Visible Row
    Posted: 17 July 2008 at 3:39am

I use a RC with EditOptions = True to edit some data inside the RC. If I save the changes to the recordset i make a complete reload to the RC. If the reload is complete i use the ReportRows(i).EnsureVisible and the ReportRows(i).Selected = True function to go to the row, i edit before. If tehre is are a lot of rows, the selected row is not at ther original position on the screen like before. In this case a property like ReportRows.FirstVisible would be very helpful. Is it possible to get a properly or a workaround for this problem?

Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2008 at 4:05am
Just an idea...

Take a look at the MoveFirstVisibleRow method from the ReportNavigator object. The description sounds like you could build a workaround for your problem.

Let us know, if you were successfull.
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2008 at 5:04am

Yes, if it is possible to get the RowNumber oder RowIndex of the moved row.

ReportNavigator.MoveFirstVisibleRow
i = RpRow.Index
 
doesn't work
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2008 at 5:08am
hi,

i beleive there is a shorter way to achieve this but my approach kinda works for me :)

1. set the wndReportControl.TopRowIndex and FocusedRow.Index before reload to a variable
2. After reload set wndReportControl.Navigator.MoveToRow [FocusedRow.Index], False, False to stored varibles.
3. wndReportControl.TopRowIndex = [TopRowIndex]

 



Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2008 at 5:54am
Thanks, this is simple and works
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
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.047 seconds.