evan liewer

evan liewer

  • NA
  • 25
  • 35.9k

dataGridView doesnt update SQL table

Sep 5 2012 11:29 PM
I cannot figure out how to update the SQL database by deleting rows in my dataGridView.

I populate the Grid with a table adapter, and can delete items on the list, which only deletes the items in the table.  What code do i need to save changes from the changed datagrid to my SQL server.  

I am looking at the created code of 
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
        {

        }

What code do i place here, do I create a new table adapter? Also, how do i call my previously created table adapter if it is in a private void call?

Answers (2)