Print Page | Close Window

refreshing the control in the right way

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=22262
Printed Date: 17 May 2024 at 12:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: refreshing the control in the right way
Posted By: oslsrl
Subject: refreshing the control in the right way
Date Posted: 31 March 2014 at 8:58am
Hi all!
I have a question about a good "refresh" of  a ReportControl.

Suppose my "Customers" table has 300 records, and  I want to modify "City" field from "Rome" to "Milan" at record #200.
My application shows the list of records at the left, only 50 records per page, so I scrolled down the pages 4-5 times to reach #200 position.
At the right of my form I modify the "city" field" of selected record.
When I press "Modify" button I'd like to see value "Rome" becoming "Milan" at the Reportcontrol "City" column without scrolling the pages..
If I use Reportcontrol.Populate method the list view  scrolls, showing me the first record in the first page, so I'm forced to press pagedown key to see my record again...

How can I refresh the page remaining in the same page, keeping the selected record at the same position?
I hope I was clear..
Thanks,
Luca




Replies:
Posted By: Willowmaster
Date Posted: 01 April 2014 at 9:21am
You can block the selection change after a populate by setting a parameter in the correct event.

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0






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