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 » Remove item from propery grid Collapse All
Subject Author Date
Eyal Cohen Aug 24, 2006 - 2:17 PM

I want to remove a property grid item and insert new one instead. The item I want to remove is child of CExtPropertyValueCompound. Do you have an example which shows how to perform this operations.
(I am trying to do it with calls to PropertyItemRemove and PropertyItemInsert but it seems that the application crash when it redraw the grid).

Thx

Technical Support Aug 25, 2006 - 6:01 AM

You can remove the property value from its parent property item by invoking the parent’s CExtPropertyItem::ItemRemove() method. If the property grid control displays the content of the combined/mixed property store, recreate the combined propery store from scratch. Finally, invoke the CExtPropertyGridCtrl::PropertyStoreSynchronize() method to update the content of the property grid control.