Print Page | Close Window

Populate without changing focus / ensure visible

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=13958
Printed Date: 27 June 2024 at 2:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Populate without changing focus / ensure visible
Posted By: inmaurik
Subject: Populate without changing focus / ensure visible
Date Posted: 09 April 2009 at 3:33am
I'm using the Report control to show information from the database. The control is filled with an initial set of data and when the user scrolls down the next data is added to the control. This however prompts me with a problem. To add the rows to the control I have to call populate.

When I do this the current selection gots lost because Populate wants to set the selection back to the selected record in stead of the selected row (e.g. a group row) or when there is no selection the top row is set.

Is there a way to re-populate the control and set back the current selected row (without ensuring visibility) or when no selected row is present, leave it that way?

-------------
Product: Xtreme SuitePro (MFC) version 13.3.1
Platform: Windows 7 Enterprise (64bit)
Language: C++ (Visual Studio 2008 SP1)



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