Print Page | Close Window

[SOLVED] TopRowIndex always returns 0

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=18916
Printed Date: 26 July 2025 at 10:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] TopRowIndex always returns 0
Posted By: McKloony
Subject: [SOLVED] TopRowIndex always returns 0
Date Posted: 08 September 2011 at 4:37am
in the new release the TopRowIndex property always returns 0 no matter how many records are in the reportcontrol. here is a sample project for andre:
 
uploads/2660/_Testproject3.rar - uploads/2660/_Testproject3.rar
 


-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: ABuenger
Date Posted: 08 September 2011 at 10:32pm
Hi,

TopRowIndex returns 0 if you have smooth scrolling enabled. I'll also set the row index for the next release.

Andre



-------------
Codejock support


Posted By: McKloony
Date Posted: 09 September 2011 at 4:50am
Andre, if ScrollMode = xtpReportScrollModeBlock the TopRowIndex also gets 0

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: ABuenger
Date Posted: 14 September 2011 at 9:51pm
Originally posted by McKloony McKloony wrote:

Andre, if ScrollMode = xtpReportScrollModeBlock the TopRowIndex also gets 0


Hi,

I've added a new HScroll and VScroll event and tested if the TopRowIndex is set correctly.

Private Sub wndReportControl_VScroll(ByVal Section As Long, ByVal Position As Long)
    Debug.Print wndReportControl.TopRowIndex
End Sub

The TopRowIndex is always set correctly, if ScrollMode = xtpReportScrollModeBlock. If you always get 0, you've enabled smooth scrolling.

Andre



-------------
Codejock support


Posted By: McKloony
Date Posted: 15 September 2011 at 3:27am
Yes, you are right. Anyhow on my project was smooth scrolling activated.

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



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