Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Populate() automatically expands groups
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Populate() automatically expands groups

 Post Reply Post Reply
Author
Message
Kayako View Drop Down
Newbie
Newbie


Joined: 04 January 2006
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kayako Quote  Post ReplyReply Direct Link To This Post Topic: Populate() automatically expands groups
    Posted: 25 November 2009 at 5:48pm
Greetings,

We're trying to use the report control to display data that is refreshed on an interval.  Whenever we update the data, we iterate the rows and call the Set*() methods on them, then Populate().

Here's the problem:

If item A is under a group called "Group 1" and you collapse Group 1, the next call to Populate() expands Group 1We do not wish for this to happen.  Is this a bug?  Is there a way to stop the control from expanding collapsed groups on a call to Populate?

Thanks in advance!
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2009 at 11:21pm
Before your call to update data from data source you can remember all group states (expanded or collapsed) and after populate restore this states set again - looks very easy. Default behaviour is proper as after you change data some of groups can changes - e.g. previous visible child row will be invisible under your logic as now will have another group row which can be collapsed.
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.203 seconds.