VS 2015, SQL 2008
Okay, have been trying to get my head around this one for a day or so now, and have searched extensively but to no avail......
I have a SQL view (2 tables into 1), for a datagridview.
I am using datasource, and databindings instead of SQL code to populate the datagrid.
How do I go about saving any changes to the database, if someone changes the data on a row.
Have tried, the follwong code, attached to a button (save), but to no avail.
Do I need to be updating the tables explicitly or can the view handle the updating.
Any help greatly appreciated.
Okay, have been trying to get my head around this one for a day or so now, and have searched extensively but to no avail......
I have a SQL view (2 tables into 1), for a datagridview.
I am using datasource, and databindings instead of SQL code to populate the datagrid.
How do I go about saving any changes to the database, if someone changes the data on a row.
Have tried, the follwong code, attached to a button (save), but to no avail.
VB.NET:
Me.bsJobvehicle.EndEdit()
Me.Dsttdjobs.AcceptChanges()
Do I need to be updating the tables explicitly or can the view handle the updating.
Any help greatly appreciated.