hi,
I am new to c# and SQL server. I am currently using SQL management tool to create tables and have added table to data gridview visually while I can enter the data the table as well as the data base is updated but I cannot delete rows from the data base although a row seems to be deleted when I delete the selected row it appears again when I recompile since the database is not updated.
I am using the following code in the update button
mainTableAdapter1.Update(mainDataSet1.main);
this.mainTableAdapter1.Fill(this.mainDataSet1.main);
whenever i run the program and delete a row and push the update button there is a error saying proper update method is required to delete a row.
isn't the code above enough to update a row or delete it if we add tables to datagrid view visually.
please help
thank u