0
Answer

Deleting a row from DataGrid from database

bryan 0

bryan 0

19y
1.7k
1
I'm using a Oledatadapter to fill a dataset and displaying my ms access records via a datagrid. Anybody is familiar on how to 1. Allow a user to select a Datagrid row and click on a button "btnDelete" the row will be deleted from the database? Each row has a unique column called 'ID'. any help? 2. How to write codes to delete all the records that has integer value of "1" in its Column: fld_Type Binding Codes: dataview = dataset.Tables("Table").DefaultView datagrid.datasource = dataview