HELP PLEASE "DataBinding could not find a row in the list that is suitable for all bindings"

  • Thread starter João Santa Bárbara
  • Start date
J

João Santa Bárbara

Hi all, i have this error
"DataBinding could not find a row in the list that is suitable for all
bindings"

and this happens when i press my button to cancel using this
"Me.BindingManager.CancelCurrentEdit()"

i have in my datatable 4 string fields , one autonumber ( key ) and 1 date
field, when i press the add button using
Me.BindingManager.Addnew() and i press imediatly the
Me.BindingManager.CancelCurrentEdit() it throws the error ..

one note: i don´t have any row in my datatable. datatable.rows.count = 0

can anyone assist me .. ?

thks
JSB
 
M

Matt Burland

I'd guess this is because you've just deleted the row that it was looking
at?
Have you tried moving the BindingManager to a different position before you
delete the current row?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top