Print Page | Close Window

Empty check box cell

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=3626
Printed Date: 28 April 2024 at 10:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Empty check box cell
Posted By: douglashogan
Subject: Empty check box cell
Date 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



Replies:
Posted By: sserge
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net