Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Populate without changing focus / ensure visible
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Populate without changing focus / ensure visible

 Post Reply Post Reply
Author
Message
inmaurik View Drop Down
Groupie
Groupie


Joined: 13 July 2007
Location: Netherlands
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote inmaurik Quote  Post ReplyReply Direct Link To This Post Topic: Populate without changing focus / ensure visible
    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)
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.172 seconds.