Hi,
we are currently in the progress of upgrading our tools from v12.2.16 to v15.1.8 and stumbled upon a behavioral change within our test suite. Maybe the problem just exists within our test suite, since the problematic code is not used in our productive code. The problem is that calling Refresh() on the property grid control causes the active editor to be closed. Something we didn't encounter in any of the previous versions or any other DevExpress component.
Maybe this is related to T247757 but in our case the property AutoGenerateRows is already disabled. In our case the refresh triggers a LayoutChanged event which in conclusion closes the active editor (see attachment).
What is the reason for the change? For now we just use Invalidate() in combination with Application.DoEvents() to get the same effect.
Best regards,
Tobias Lingemann
Hello Tobias,
This change is a consequence of the fix provided in the PropertyGridControl doesn't become read-only if SelectedObject is read-only thread.
Nevertheless, the Refresh method shouldn't change the control's state but only forces the grid to be redrawn. I've passed this ticket to our R&D team for further research.
We will update it once we make progress.
Thank you for your feedback.