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 » propertry grid with string cells that are not refreshing Collapse All
Subject Author Date
marc uchida Sep 9, 2010 - 11:45 AM

I have a property grid with some string cells (CExtGridCellString) and 1 combo property.  The string cells are read only.  The values of the string cells reflects what was chosen from the combo property.  I can update the values for the data members though the Apply of the combo property, because I have access to all the Property Values in my Property grid class, but the string cells DISPLAYED values do not update when I change their values programmatically in this way.  I do use TextSet member of the string grid cells in question, but that does not force a refresh of the display.  The same applies to changing the Style (like toggling read only trait) with the ModifyStyle member.



There is no equivalent behaviour in the PropertyGrid sample project.



I used to be able to get this behaviour pre version 283 by calling the property grid control’s PropertyStoreSynchronize() from the containing dialogs OnPaint, but since 283 the OnPaint no longer gets called automatically after an item in the property grid has been changed.



How am I suppose to handle this case?  There does not appear to be a way, if the TextSet does not do it for me.



CExtGridCell does not appear to have an update display method.



I am running on Vista and XP with v290 currently.



thanks



marc

Technical Support Sep 10, 2010 - 12:24 AM

The CExtGridCell::TextSet() method does not redraw anything in any Prof-UIS version. Please review the code snippet in the bottom message of the following thread:

http://www.prof-uis.com/prof-uis/tech-support/support-forum/property-grid-question-58471.aspx

It contains the code snippet which changes the enabled state of the grid cells inside property grid control and invalidates cell areas.