Hello Team
I am facing below issue, type some alphabet in combobox cell type in UltraGrid after drop down popups with suitable values then select some thing from list.
System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.EditorWithCombo.Infragistics.Win.IValueListOwner.OnSelectionChangeCommitted() at Infragistics.Win.ValueList.ProcessSelectionChangeCommitted() at Infragistics.Win.ValueListDropDown.OnSelectionChangeCommitted() at Infragistics.Win.ValueListDropDown.SelectItemByMouse(ValueListItem valueListItem) at Infragistics.Win.ValueListDropDown.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at Infragistics.Win.ValueListDropDownUnsafe.WndProc(Message& message) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This issue is only when we have items in dropdown which matches what we have entered in dropdown.
Thanks in advance.
Hello Silva
Did you manage to resolve this issue? I have exactly the same problem. I have been in touch with Infragisitics support and they told me the same thing - that the issue was fixed in the latest SR. I have the latest SR but I still experience the issue.
If you can offer any suggestions it will be greatly appreciated.
Thanks
Ben
Even I am facing the same issue in 20151.2230, has this been fixed or not?
Based on the call stack that was provided we believed that the issue was addressed in version 15.1.20151.2230. If you are indeed still seeing the NullReferenceException in this version, please provide us with an example that we can use for debugging to look into what may be happening as we didn't reproduce this at the time the thread was raised.
Hi Simon,
I tried this out with v18.2 and I cannot reproduce any exception. I have attached my sample project here so you can try it out and see if you can reproduce the exception using the same sample. If not, then perhaps you could post a small sample project that does reproduce the exception.
Also, it's not exactly clear what you mean when you say you select an item from the list and then press [Enter]. How you are selecting the item? With the mouse? Via the keyboard? Are you dropping down the list first or not?
By default, the Enter key doesn't actually do anything when the dropdown is not open, so I assume you mean you are dropping down the list and then using the keyboard to select an item and then pressing enter?
I tried that and a bunch of other ways to select an item and it all works fine for me with no Exceptions.
7674.MemDataTable CS.zip
Seems still to exist in Infragistics4.Win.v18.2.dllValueList was set before in InitializeRowEvent like this:e.Row.Cells["unit"].ValueList = vlModelFields; (non-null ValueList)then after selecting something in the list and confirming with [Enter] we end up in a NullPointerException with this callstack:> Infragistics4.Win.v18.2.dll!Infragistics.Win.EditorWithCombo.Infragistics.Win.IValueListOwner.OnSelectionChangeCommitted() Zeile 2691 C# Infragistics4.Win.v18.2.dll!Infragistics.Win.EditorWithCombo.InternalOnEmbeddableTextBoxListenerKeyDown(System.Windows.Forms.KeyEventArgs e) Zeile 1969 C# Infragistics4.Win.v18.2.dll!Infragistics.Win.EmbeddableEditorOwnerBase.RaiseKeyDown(System.Windows.Forms.KeyEventArgs e) Zeile 604 C# Infragistics4.Win.UltraWinGrid.v18.2.dll!Infragistics.Win.UltraWinGrid.UltraGrid.ForwardKeyToEditorHelper(System.Windows.Forms.KeyEventArgs e) Zeile 10449 C# Infragistics4.Win.UltraWinGrid.v18.2.dll!Infragistics.Win.UltraWinGrid.UltraGridUIElement.ProcessKeyDown(System.Windows.Forms.KeyEventArgs e) Zeile 1350 C# Infragistics4.Win.v18.2.dll!Infragistics.Win.Utilities.ProcessEvent(System.Windows.Forms.Control control, Infragistics.Win.ControlUIElementBase.ProcessEvent eventToProcess, System.EventArgs e) Zeile 2155 C# Infragistics4.Win.v18.2.dll!Infragistics.Win.UltraControlBase.OnKeyDown(System.Windows.Forms.KeyEventArgs e) Zeile 1645 C# System.Windows.Forms.dll!System.Windows.Forms.Control.ProcessKeyEventArgs(ref System.Windows.Forms.Message m) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.Control.WmKeyChar(ref System.Windows.Forms.Message m) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt Infragistics4.Win.v18.2.dll!Infragistics.Win.UIAutomation.UiaProviderControlNativeWindow.WndProc(ref System.Windows.Forms.Message msg) Zeile 44 C# System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt Infragistics4.Win.v18.2.dll!Infragistics.Win.EditorWithMask.AccessibleTextManager.AccessibleTextSubclasser.WndProc(ref System.Windows.Forms.Message msg) Zeile 969 C# System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt Infragistics4.Win.v18.2.dll!Infragistics.Win.FormattedLinkLabel.FormattedLinkEditor.AccessibleTextManager.AccessibleTextSubclasser.WndProc(ref System.Windows.Forms.Message msg) Zeile 182 C# System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt Infragistics4.Win.v18.2.dll!Infragistics.Win.FormattedLinkLabel.IMENativeWindowManager.IMENativeWindow.WndProc(ref System.Windows.Forms.Message m) Zeile 127 C# System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt Infragistics4.Win.v18.2.dll!Infragistics.Win.AutoEditMode.AutoEditModeManager.AutoEditModeNativeWindow.WndProc(ref System.Windows.Forms.Message m) Zeile 47 C# System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt [Übergang von Nativ zu Verwaltet] [Übergang von Verwaltet zu Nativ] System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context) Unbekannt System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) Unbekannt TerminalStar.exe!TerminalStar.Program.Main(string[] args) Zeile 159 C#
As 15.1.20151.2230 was the last service release for 15.2, if the issue is reproducible in that build, then I would recommend testing your application with 17.2 to see if the issue can still be reproduced. If not, then the recommendation is to upgrade to the later volume. If it does reproduce the issue, send us a sample reproducing the behavior so we can look into it.
The stack trace is a bit different here:Infragistics.Win.EditorWithCombo.Infragistics.Win.IValueListOwner.OnSelectionChangeCommitted()Infragistics.Win.EditorWithCombo.InternalOnEmbeddableTextBoxListenerKeyDown(KeyEventArgs e)Infragistics.Win.EditorWithCombo.Infragistics.Win.IEmbeddableTextBoxListener.OnKeyDown(KeyEventArgs e)Infragistics.Win.EmbeddableTextBox.OnKeyDown(KeyEventArgs e)System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)System.Windows.Forms.Control.ProcessKeyMessage(Message& m)Infragistics.Win.EmbeddableTextBoxWithUIPermissions.ProcessKeyMessage(Message& msg)System.Windows.Forms.Control.WmKeyChar(Message& m)System.Windows.Forms.Control.WndProc(Message& m)System.Windows.Forms.TextBoxBase.WndProc(Message& m)System.Windows.Forms.TextBox.WndProc(Message& m)Infragistics.Win.EmbeddableTextBoxWithUIPermissions.WndProcInternal(Message& m)Infragistics.Win.EmbeddableTextBoxWithUIPermissions.WndProc(Message& m)System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)System.Windows.Forms.Application.Run(Form mainForm)TNR.Workbench.Program.Main() in Program.cs: line: 26We have an ultragrid which has a valuelist bound to it & auto suggest set on that cell. On selecting or typing an item & hitting the enter key our app crashes.