Print Page | Close Window

How to show non-editable rows as grayed-out

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=11192
Printed Date: 16 November 2024 at 5:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to show non-editable rows as grayed-out
Posted By: RHolmes
Subject: How to show non-editable rows as grayed-out
Date Posted: 24 June 2008 at 1:37pm
Hello,
  I am using a CXTPReportControl in my project (and one of the columns in the report is a check box.)
  Some columns are editable and some aren't.
  I have overridden the OnClick and SetChecked functions for the check box report item and control the functions using a isEnabled variable. I hope that is correct way to control check box behavior.

  I want to be able to visually show that some rows are disabled (not editable). I would like to be able to show the rows grayed-out. Is there an easy way to do this?

Thanks.



Replies:
Posted By: znakeeye
Date Posted: 08 July 2008 at 6:40am
Set the pMetric->clrBackground in CYourReportCtrl::GetItemMetrics, depending on pItem->isEnabled. I believe you can find such code in the samples.


Posted By: RHolmes
Date Posted: 08 July 2008 at 4:47pm
Thank you very much. Your suggestion was very helpful and answered my question.



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