Print Page | Close Window

BUG: "Selected = True" doesn't work properly

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=12485
Printed Date: 06 June 2024 at 2:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: "Selected = True" doesn't work properly
Posted By: Alexey2
Subject: BUG: "Selected = True" doesn't work properly
Date Posted: 20 October 2008 at 8:13am
VB6 test: https://forum.codejock.com/uploads/20081020_081308_CJ_REPORT_BUG2.zip - uploads/20081020_081308_CJ_REPORT_BUG2.zip
 
Looks like it's only selects the row, but focus remains on the earlier chosen row. (Try to comment ReportControl1.Populate, press button and then use keyboard arrow keys)
 
 



Replies:
Posted By: Oleg
Date Posted: 21 October 2008 at 2:20am
Hi,
 
Use
ReportControl1.Populate
ReportControl1.FocusedRow = ReportControl1.Rows(3)
instead


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ElvisM
Date Posted: 21 October 2008 at 2:26pm
Try populating first and then select the desired row.
 
Ragards.


-------------
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015


Posted By: Alexey2
Date Posted: 21 October 2008 at 2:38pm
oleg
Thank you, it works!
 
ElvisM
Unsuccessfully.


Posted By: Aaron
Date Posted: 24 October 2008 at 3:45am
Originally posted by Alexey2 Alexey2 wrote:

VB6 test: https://forum.codejock.com/uploads/20081020_081308_CJ_REPORT_BUG2.zip - uploads/20081020_081308_CJ_REPORT_BUG2.zip
 
Looks like it's only selects the row, but focus remains on the earlier chosen row. (Try to comment ReportControl1.Populate, press button and then use keyboard arrow keys)
 
 
 
Hi,
 
Strange that only: ReportControl1.Rows(3).Selected = True
 
is updating the reportcontrol ??? Is this designed this way? Why is the method UpdateRecord ever added if this does the same?
 
@Alexey2: don't call Populate just for just changing single item, there are other ways to update report. UpdateRecord and Redraw are faster when updating a single record.
 
 
An explanation of a supportmember would be nice  
 
Thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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