Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How can I make a GridCell of a CExtPropertyGridCtrl read only (not editable) Collapse All
Subject Author Date
Florian Ulrich Oct 16, 2006 - 6:00 AM

Hallo all,

I have followed the CExtPropertyGridCtrl examples to build my own property grid. I have the requirement that some cells have to be read only. That means the user shall not be able to edit the value of certain properties. By default the cells seem to be editable. How can I make a cell locked (not editable)?

Thanks for Your help!

Florian Ulrich Oct 16, 2006 - 11:47 PM

Thank you for your help :-)

Suhai Gyorgy Oct 16, 2006 - 8:05 AM

There are 2 ways you can make your cell not editable.

- One of them is disabling the inplace editor altogether. You can achieve this by adding the __EGCS_NO_INPLACE_CONTROL style to the cell’s styles.
- The other way is that you enable the inplace editor, but you make it read-only. This can be done with __EGCS_READ_ONLY style. With this style the user can copy the data from the cell using the inplace editor, but can’t change it’s value.