Solving a problem is easiest when you have exact error message. You just need to Google for it.
So is your case. See the link -
Error - Update requires a valid UpdateCommand when passed DataRow collection[
^].
BTW the error message here is pretty self explaining. You haven't defined an
UpdateCommand
for the
BindingSource
. To update something against database, an update query is required and you will need to specify one like this - bindingsource.UpdateCommand = "Update Query here";
Hope this helps!