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 Tech Support » CExtPropertyGridCtrl & cell modification Collapse All
Subject Author Date
Massimo Germi Feb 10, 2007 - 1:31 AM

Dear support,
in some case I need to prevent cell modification in a CExtPropertyGridCtrl derived class.


Tx a lot

Suhai Gyorgy Feb 10, 2007 - 10:22 AM

If you have cells which can be changed with buttonclick as well (like combo cell, for example), you will also have to override OnGbwAnalyzeCellMouseClickEvent method and do the same in it: return false if editing is disabled and invoke the parent class method otherwise.

Technical Support Feb 10, 2007 - 10:14 AM

The CExtPropertyGridCtrl control is container for one or more tree grid windows displaying properties. By default, there are two tree grids: CExtPropertyGridWndCategorized and CExtPropertyGridWndSorted. You can override the CExtPropertyGridCtrl::OnPgcCreateGrids() method and create custom versions of these grids in it. In your CExtPropertyGridWndCategorized-derived and CExtPropertyGridWndSorted-derived classes, you should implement the CExtGridBaseWnd::OnGbwBeginEdit() virtual method that returns false if editing is disabled and invokes the parent class method otherwise.