0

Why do I get this error when I want to edit a row of the database?

enter image description here

aepot
  • 4,558
  • 2
  • 12
  • 24
  • Hi and welcome on SO! Please read the [how-to-ask page](https://stackoverflow.com/help/how-to-ask) and read [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/minimal-reproducible-example) to improve your question and help us to understand your problem. – nilsK Aug 26 '20 at 07:38
  • And also, please do not post code as image. Post it as text and use the editors code formatting function. – nilsK Aug 26 '20 at 07:39
  • 1
    ... yeah, and i guess, that your `Cell[0]` does not have a `Value`. Calling `ToString` on NULL throws a NullRef – nilsK Aug 26 '20 at 07:40
  • To your _specific_ datagridview null ref, [see this answer](https://stackoverflow.com/a/44442528/3585500). – ourmandave Aug 26 '20 at 11:37

0 Answers0