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

Empty check box cell

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


Joined: 02 July 2003
Location: Switzerland
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote douglashogan Quote  Post ReplyReply Direct Link To This Post Topic: Empty check box cell
    Posted: 08 February 2006 at 1:51pm

Hi,

I am adding records to a report control and one of the field is a check box. However, for some of the records, the check box is irrelevant, and i would like to be not visible. Is this possible. Using the AddItem syntax sequentially means I can't "step over" the inserting of the check box item.

Regards
Douglas Hogan
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: 11 February 2006 at 3:31am
Hi Douglas,

Use record item customization. For example, you can show or hide a check box for an item in a following way:

CString CMessageRecordItemCheck::GetCaption(CXTPReportColumn* pColumn)
{
    BOOL bShowCheckbox = GetRecord()->YourCondition();
    HasCheckbox(bShowCheckbox);
    return CXTPReportRecordItem::GetCaption(pColumn);
}


--
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.141 seconds.