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

Report Control Row Hiding

 Post Reply Post Reply
Author
Message
danpetitt View Drop Down
Senior Member
Senior Member


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post Topic: Report Control Row Hiding
    Posted: 23 July 2006 at 7:39am
I was looking at the report control and wondered how one would hide a specific row.
 
I basically want a bunch of items that could be errors, warnings, info or something else.
 
I want to have a button toggle that shows hides a row according to its 'status'.
 
Is it possible/easy with the report control, I cant really use "SetFilterText" as the word warning might appear legitimately in one of the other columns.
 
Maybe I need to store them in a an array and repopulate the list each time? Shame if thats so.
 
Please help, thanks.
Back to Top
danpetitt View Drop Down
Senior Member
Senior Member


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2006 at 2:33pm

I suppose I could put some specific text that only I know like ":MYWARNING:" in a hidden column and use that. That could work, but what if I want errors and warnings ... hmm maybe not a good use of the report control after all.

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: 30 July 2006 at 6:32pm
Set ReportRecord::SetVisible(FALSE) for those records which you don't like to show and repopulate a control with ReportControl::Populate.

Don't be afraid of calling Populate because even with mentioned filtering functionality it is repopulated each time when filter edit box changes.

--
WBR,
Serge
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.031 seconds.