Valerie Meunier

Valerie Meunier

  • 958
  • 693
  • 72.1k

how to save added, edited or deleted row in datagridview ?

Apr 3 2022 3:51 PM

Hi

I created a datagridview in windows forms linked to a table in sql server. by dragging it from the Toolbox. I have no code. The options 'Enable adding, editing and deleting are set. 

Now, I can see the rows in the datagridview. I also can edit, delete or add a row. But when i close the form and i run the application again, nothing is changed in the table. How can i save the changes in sql server (adding, editing, deleting) i made before?

Thanks

V.


Answers (8)