Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Clearing Report Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Clearing Report Control

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


Joined: 10 September 2005
Location: Iran
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mehran20 Quote  Post ReplyReply Direct Link To This Post Topic: Clearing Report Control
    Posted: 17 October 2005 at 3:39pm

Hi,

If I want to clear my report control completely, what's the easiest way!! Just consider that my report control might be tree.. < =text/>

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2005 at 3:42am
Hi,


wndReport.GetRecords()->RemoveAll(); // Removes all records with children
wndReport.Populate();


See also http://forum.codejock.com/forum_posts.asp?TID=3033&PN=1

--
WBR,
Serge
Back to Top
mehran20 View Drop Down
Newbie
Newbie


Joined: 10 September 2005
Location: Iran
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mehran20 Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2005 at 11:15am
Thanks, I thought it might be so but I was not sure if it would remove all the children too. Now I'm sure :)
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.156 seconds.