BindingSource and DataGridView AddNew

0
0

When I add a new row to a binding source that is used in a data grid I am getting Row Index provided is out of range.  This was working recently but I upgrade to the latest version and this error just started popping up.

 

Please help ASAP.

 

Thanks,

Tim Larson

  • You must to post comments
0
0

Hi Tim,

What kind on data source? I tried to reproduce using a DataTable and adding a row when loading and on a click but can’t reproduce. I tried binding directly to the DataTable and to a BindingSource(table, null). Can you send some more details? Stack trace, and the type of binding.

Thanks,

Luca

  • Tim Larson
    I was able to fix the issue by deleting the binding source and adding a new one and it started working again…. Thanks!
  • Luca (ITG)
    mmmm, sounds tricky. I f you get the error again, please enable thee exceptions in VS Debug->Windows-Exceptions Settings, check Common Language exceptions, ignore the startup handled exceptions and when you get the exception that you mentioned get the stack strace. I can also send you a small test case to tweak in case you get this error again.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.