Bug Report T638535
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

PropertyGridControl - NullReferenceException is thrown on scrolling a control by using the mouse wheel

PropertyGridControl - The NullReferenceException is thrown when scrolling and an editor is active

created 7 years ago

Hi,

The PropertyGridControl crashes with a null reference exception when a user scrolls the mouse while the editor of the row is still active.

I've tested this in an empty project (see attachment):

  1. Select a cell to edit a row
  2. Scroll down or up with the mouse (don't tab out first!)
  3. Crash !!!
Comments (1)
DevExpress Support Team 7 years ago

    Hi Gert,

    Thank you for providing the project. It was useful.
    I have also noticed the described behavior.

    System.NullReferenceException
       DevExpress.XtraVerticalGrid.PGEditingState.MouseWheel(DevExpress.Utils.MouseWheelScrollClientArgs)
       DevExpress.XtraVerticalGrid.BaseHandler.DevExpress.Utils.IMouseWheelScrollClient.OnMouseWheel(DevExpress.Utils.MouseWheelScrollClientArgs)
       DevExpress.Utils.MouseWheelScrollHelper.OnScrollLine(DevExpress.Utils.DXMouseEventArgs, Int32, Boolean)
       DevExpress.Utils.MouseWheelScrollHelper.OnMouseWheel(System.Windows.Forms.MouseEventArgs)
       DevExpress.XtraVerticalGrid.BaseHandler.OnMouseWheel(System.Windows.Forms.MouseEventArgs)
       DevExpress.XtraVerticalGrid.VGridControlBase.OnMouseWheelCore(System.Windows.Forms.MouseEventArgs)
       DevExpress.XtraEditors.Container.EditorContainer.OnMouseWheel(System.Windows.Forms.MouseEventArgs)
       System.Windows.Forms.Control.WmMouseWheel(System.Windows.Forms.Message ByRef)
       System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       DevExpress.XtraEditors.Container.EditorContainer.WndProc(System.Windows.Forms.Message ByRef)
       DevExpress.XtraVerticalGrid.VGridControlBase.WndProc(System.Windows.Forms.Message ByRef)
       System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)

    I have passed this ticket to our developers. Please stay tuned.
    We will update this thread as soon as we have any results.

    Answers approved by DevExpress Support

    created 7 years ago (modified 7 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.