Hello,
I have an UltraCombo with AutoCompleteMode = SuggestAppend. It's drop down contains a list of predefined forms. When I use the mouse and click on any value in the drop down, there is no error in launching/loading the chosen form. However, when I use a keyboard to type in the form name, we get the error Can't access SelectionStart unless the Editor is in edit mode. At trace, I can see that all of my code was already finished. It was able to get the form name and launch the form. However, just before it gives control back to the user, the error occurs.
Please help. Stack Trace below. Thanks.
StackTrace " at Infragistics.Win.EmbeddableEditorBase.get_SelectionStart()\r\n at Infragistics.Win.EmbeddableEditorBase.set_SelectionStart(Int32 value)\r\n at Infragistics.Win.EditorWithCombo.ProcessAutoComplete(Keys lastKeyDown)\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.Application.Run(Form mainForm)\r\n at CTRL_pad.Classes.clsProgram.Main() in C:\\CTRLPAD Server\\CTRLPAD Windows Application\\CTRLPAD Development\\Classes\\clsProgram.cs:line 16" string
My guess is that this is a known issue that is already fixed. Make sure you have the latest service release:
How to get the latest service release - Infragistics Community
Hi Mike, we were using v2009.1. I have just updated to v2009.2 but the error is still occuring. Please help. Thanks!
Hi,
In that case, I'm not sure what's wrong. Can you duplicate this in a small sample project so we can check it out?
I found the error, I was handling CellListSelect event and calling to grid.PerformAction(UltraGridAction.ExitEditMode). Here was where the exception was throwed.
Sorry for mistake
I have the same problem. I just downloaded the latest service release (NetAdvantage for Windows Forms 2010 Vol. 3 - Windows Forms Service Release, version 20103.2041) and the error is still there.
I have a UltraGrid where one column have a valueList (ColumnStyle.DropDownList), and the AutoCompleteMode of the column is set to AutoCompleteMode.SuggestAppend.
The exception occurs when I type the comple value of any value in the dropdownList
e.g. if I have 3 values ( XX, XY, XZ, YY) in the valueList, when I type X the suggestion (XX, XY, XZ) is fine and if I select one of these don't have a problem, but when I type the second (and last) letter XY then the exception is throwed.
I changed the AutoCompleteMode to Suggest and NOT to SuggestAppend and works fine. But I prefer the SuggestAppend behavior.
Do you know if someone is working on that, or if at least this bug is reported? (I guess is a bug because I saw many people with the same problem without solution. May be there is a solutios already and I didn't find it. If is that sorry for assume that this is a bug)
Thanks,
Gastón
Looks like this occurred when someone was typing into the control and it was trying to find a match on the list for AutoComplete functionality.
In such a case, it should not be possible for the control not to be in edit mode.
I have the same problem with the latest sr of 9.2.
I want to try to get you a sample project but I have to know what this trace is about. Can you tell me what the Infragistics control is trying to do here?
bei Infragistics.Win.EmbeddableEditorBase.get_SelectionStart()
bei Infragistics.Win.EmbeddableEditorBase.set_SelectionStart(Int32 value)
bei Infragistics.Win.EditorWithCombo.ProcessAutoComplete(Keys lastKeyDown)
bei Infragistics.Win.EditorWithCombo.ProcessTextBoxTextChanged(Boolean& selectionSAFEchangedByAutoEdit)
bei Infragistics.Win.EditorWithCombo.Infragistics.Win.IEmbeddableTextBoxListener.OnTextChanged()
bei Infragistics.Win.EmbeddableTextBox.OnTextChanged(EventArgs e)
bei System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
bei System.Windows.Forms.TextBoxBase.WndProc(Message& m)
bei System.Windows.Forms.TextBox.WndProc(Message& m)
bei Infragistics.Win.EmbeddableTextBoxWithUIPermissions.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Since I was never able reproduce the issue, I'm not sure of the status. But I recommend that you get the latest service release. It may have been fixed.