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 » CExtPropertyGridWnd category selection Collapse All
Subject Author Date
Mac Will Jan 3, 2006 - 9:01 AM

Hello,

In the CExtPropertyGridWnd the categories are not selectable or at least they don’t appear to get selected in the sample when clicked on.  I was wondering where this is done.


i.e. I have a grid and certain rows I don’t want to be selectable.


 


Thanks

Technical Support Jan 4, 2006 - 11:46 AM

All the rows are selectable in the property grid window. The category rows are simply painted using a different style. You can override the following method in your CExtGridWnd-derived class:

virtual bool SelectionGetForCell(
    LONG nColNo,
    LONG nRowNo
    ) const;
Your method should return false for the unselectable rows and invoke the parent method otherwise.