Note that there are some explanatory texts on larger screens.

plurals
  1. POC# BindingSource.AddingNew is never called?
    text
    copied!<p>BindingSource.AddingNew is never called when I leave the cell of my datagrid.</p> <p>The DataGrid has as datasource the BindingSource which again has a "List" of "Customer".</p> <p>What does the BindingSource need to create a new Customer object and add it to the underlying ICustomerList ? </p> <p>Of course a interface has no constructor...</p> <p>but my customer object has a default constructor!</p> <p>Thats the Exception I get:</p> <pre><code>System.MissingMethodException: The constcructor for the type "SAT.EnCoDe.Administration.ICustomer" was not found. </code></pre> <p>bei System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) bei System.SecurityUtils.SecureCreateInstance(Type type, Object[] args) bei System.ComponentModel.BindingList<code>1.AddNewCore() bei System.ComponentModel.BindingList</code>1.System.ComponentModel.IBindingList.AddNew() bei System.Windows.Forms.BindingSource.AddNew() bei System.Windows.Forms.CurrencyManager.AddNew() bei DevExpress.Data.CurrencyDataController.OnCurrencyManagerAddNew() bei DevExpress.Data.CurrencyDataController.AddNewRow() bei DevExpress.XtraGrid.Views.Grid.GridView.OnActiveEditor_ValueModified(Object sender, EventArgs e) bei DevExpress.XtraEditors.Repository.RepositoryItem.RaiseModified(EventArgs e) bei DevExpress.XtraEditors.BaseEdit.OnEditValueChanging(ChangingEventArgs e) bei DevExpress.XtraEditors.TextEdit.OnMaskBox_ValueChanged(Object sender, EventArgs e) bei DevExpress.XtraEditors.Mask.MaskBox.RaiseEditTextChanged() bei System.Windows.Forms.TextBoxBase.WmReflectCommand(Message&amp; m) bei DevExpress.XtraEditors.Mask.MaskBox.BaseWndProc(Message&amp; m) bei DevExpress.XtraEditors.Mask.MaskBox.WndProc(Message&amp; m) bei DevExpress.XtraEditors.TextBoxMaskBox.WndProc(Message&amp; msg) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload