Updating Mysql Database Table Changes Made Datagridview Vbnet Hi Guys Ive Stuck Week Cant Q37128946

Updating mySQL database table from changes made todatagridview in VB.net

Hi guys Ive been stuck on this for over a week and i cant reachmy teacher for help (holidays)..

I have a database named “tickedoffvet” and a table named “pet”.I have a datagridview named petdatagridview.

I am trying to save any changes made in the petdatagridview backto the database, i have tried this 20 different ways and nothing isworking for me PLEASE HELP..

This is my code inside the save button click event:

   Private Sub btnSave_Click(sender As Object,e As EventArgs) Handles btnSave.Click

        Dim myDA AsMySqlDataAdapter
        Dim myDataSet AsDataSet

        Dim conn As NewMySqlConnection(“server=localhost; Port=3306; database=

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.