Hello every body,
I have a gridview with a BindingSource datasource
I do a filter on the BindingSource then I add a row in the grid and then I click enter the following exception appears entree
à System.Collections.ArrayList.get_Item(Int32 index)
à System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex)
à System.Windows.Forms.DataGridView.get_CurrentCellInternal()
à System.Windows.Forms.DataGridView.CommitEdit(DataGridViewCell& dataGridViewCurrentCell, DataGridViewDataErrorContexts context, DataGridViewValidateCellInternal validateCell, Boolean fireCellLeave, Boolean fireCellEnter, Boolean fireRowLeave, Boolean fireRowEnter, Boolean fireLeave)
à System.Windows.Forms.DataGridView.ProcessEnterKey(Keys keyData)
à System.Windows.Forms.DataGridView.ProcessDialogKey(Keys keyData)
à System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
à System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
à System.Windows.Forms.Control.PreProcessMessage(Message& msg)
à System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
à System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
à System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(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)