Print Page | Close Window

PropertyGrid Item to SetReadOnly

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=7630
Printed Date: 22 November 2024 at 5:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyGrid Item to SetReadOnly
Posted By: Anni
Subject: PropertyGrid Item to SetReadOnly
Date Posted: 19 July 2007 at 1:01pm

How can I make PropertyGrid item to read only field without making it grayed out?

Thanks,
Anni



Replies:
Posted By: Oleg
Date Posted: 20 July 2007 at 2:53am
Hi,
 
You can set readonly color:
 
 m_wndPropertyGrid.GetPaintManager()->GetItemMetrics()->m_clrReadOnlyFore = 0;


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Anni
Date Posted: 20 July 2007 at 1:29pm
Thanks Oleg, this helps when the grid is getting populated with all the items. What if I am cloning a new item from an existing item? It crashes.
 
However, today I found one more customize solution for my problem, I am modifying GetItemTextColor function for the same.
 
Anyways, thanks for your help.
 
Regards,
Anni



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