Bug Report T332685
Visible to All Users

PropertyGridControl - The Refresh method call closes an active in-place editor

created 9 years ago

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

Comments (1)
Andrew Ser (DevExpress Support) 9 years ago

    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.

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.