See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: Can't call DropDown unless the Editor is in edit mode.
at Infragistics.Win.EditorWithText.get_CurrentEditText()
at Infragistics.Win.UltraWinGrid.UltraGridCell.CommitEditValue(Boolean& stayInEdit, Boolean fireDataError, Boolean forceDontThrowException, Boolean dontStoreInUndoHistory)
at Infragistics.Win.UltraWinGrid.UltraGridCell.CommitEditValue(Boolean& stayInEdit, Boolean fireDataError, Boolean forceDontThrowException)
at Infragistics.Win.UltraWinGrid.UltraGridLayout.OnEditorBeforeExitEditMode(Object sender, BeforeExitEditModeEventArgs e)
at Infragistics.Win.EmbeddableEditorBase.OnBeforeExitEditMode(Boolean& cancel, Boolean forceExit, Boolean applyChanges)
at Infragistics.Win.EditorWithText.OnBeforeExitEditMode(Boolean& cancel, Boolean forceExit, Boolean applyChanges)
at Infragistics.Win.EmbeddableEditorBase.ExitEditMode(Boolean forceExit, Boolean applyChanges)
at Infragistics.Win.UltraWinGrid.UltraGridCell.ExitEditMode(Boolean cancellingEditOperation, Boolean forceExit)
at Infragistics.Win.UltraWinGrid.UltraGridCell.ExitEditMode()
at Infragistics.Win.UltraWinGrid.UltraGridCell.Activate()
at Infragistics.Win.UltraWinGrid.UltraGridCell.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode, Boolean byTabKey)
at Infragistics.Win.UltraWinGrid.UltraGridCell.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode)
at Infragistics.Win.UltraWinGrid.CellUIElementBase.OnEmbeddableElementMouseDown(Object sender, EmbeddableMouseDownEventArgs e)
at Infragistics.Win.UltraWinGrid.GridEmbeddableEditorOwnerInfoBase.OnEditorMouseDown(EmbeddableUIElementBase embeddableElem, EmbeddableMouseDownEventArgs e)
at Infragistics.Win.EmbeddableUIElementBase.RaiseMouseDownEvent(EmbeddableMouseDownEventArgs e)
at Infragistics.Win.EmbeddableUIElementBase.OnMouseDown(EmbeddableMouseDownEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)
at Infragistics.Win.EditorWithTextUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)
at Infragistics.Win.UIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)
at Infragistics.Win.TextUIElementBase.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)
at Infragistics.Win.EditorWithTextDisplayTextUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)
at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
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)
Hello Anand,
It seems to me that you are trying to perform some operation which needs a reference to the editor of some control or cell. The operation fails because the control is not in editmode. Please ensure that you are in editmode and then try again. If the issue persists I am going to need a sample project which reproduces it so I can take a look at it and research this further for you.
grd.ActiveRow.Cells["col"].Activate();
when i call above line in BeforeExitEditMode event. I could see the error which i posted. on mouse click to next cell
I am not sure in which column you are, which column you are clicking and if one of these columns are this "col" column. You might want to perform this in the AfterExitEditMode event.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.