Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Adding record, updating DataTable of a Database.

$
0
0

All I want to do is to insert data into the dataTable of a DataGrid and it would automatically (or by pressing a button) save the data back to the original DataBase. So that when I run the application the entered data would appear on the DataGrid. 

Type: Microsoft SQL Server

Provider: .NET Framework Data Provider for SQL Server

Connection String: Data Source=(LocalDB)\v11.0;AttachDbFilename="G:\PressureVessels\PressureVessels\Database\UserDefined.mdf";Integrated Security=True

I have tried the method in Inserting and Updating new rows.

After all that's one of the main purposes of a DataBase. Thanks. 



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>