Sam

Sam

  • NA
  • 166
  • 0

Using .NET DataBinding class to ADD data to local database

Jan 13 2020 1:58 AM

Hello,
Using VS 2019 and C# I have built a Windows Form application using .NET System.Windows.Forms DataBinding class to bind various controls to a local SQL Server database.
This seems to work OK for reading data from the DB and displaying data in the controls. (ComboBox, TextBox etc.).
Now I want to Add data from the controls to the DB. I searched the net but could not find any explanation on how to add the data with the use of the same .NET DataBinding class.
I am aware of the normal SQL read and insert and other commands, but looking for an easier solution using the binding class.
Thanks.