We are getting this error when deleting the text in Combo Editor which trigers Value Changed and ItemNotinList event.
The following is the stack trace
" at Infragistics.Win.EditorWithCombo.get_SelectedIndex()\r\n at Infragistics.Win.EditorWithCombo.ProcessTextBoxTextChanged(Boolean& selectionChangedByAutoEdit)\r\n at Infragistics.Win.EditorWithCombo.Infragistics.Win.IEmbeddableTextBoxListener.OnTextChanged()\r\n at Infragistics.Win.EmbeddableTextBox.OnTextChanged(EventArgs e)\r\n at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)\r\n at System.Windows.Forms.TextBoxBase.WndProc(Message& m)\r\n at System.Windows.Forms.TextBox.WndProc(Message& m)\r\n at Infragistics.Win.EmbeddableTextBoxWithUIPermissions.WndProc(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)\r\n at System.Windows.Forms.Control.WmCommand(Message& m)\r\n at System.Windows.Forms.Control.WndProc(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n at System.Windows.Forms.Control.DefWndProc(Message& m)\r\n at System.Windows.Forms.Control.WmKeyChar(Message& m)\r\n at System.Windows.Forms.Control.WndProc(Message& m)\r\n at System.Windows.Forms.TextBoxBase.WndProc(Message& m)\r\n at System.Windows.Forms.TextBox.WndProc(Message& m)\r\n at Infragistics.Win.EmbeddableTextBoxWithUIPermissions.WndProc(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)\r\n at System.Windows.Forms.Form.ShowDialog()\r\n at Program.Main() in \\Program.cs:line 257"
All your help will be greatly appreciated.
Hi,
I have same scenario.. I have used AfterExitEditMode method to get typed value or selected value in UltraComboEditor
Hi Kavitha,
Since the original post is about deleting text, it does not seem like this is in any way the same scenario.
If you are getting the same error message, then that makes sense and the error message is pretty clear. You can't access the SelectedIndex when the editor is not in edit mode. So trying to do so in the AfterExitEditMode event, when the control is, by definition, not in edit mode, will not work.