Murray Brown
asked on
VB.net SQLCommandBuilder Insert New Records From DataGridView
Hi
I have a DataGridView that is loaded using the following VB.net code
The user adds new information by typing the data into the bottom row of the DataGridView.
What VB.net code would I use to insert these NEW records to the data table. Something like the following line
dbadp2.InsertCommand = builder.GetInsertCommand
I have a DataGridView that is loaded using the following VB.net code
Dim connection As New SqlConnection(CS)
dbadp2 = New SqlDataAdapter(sSQL, connection)
dbadp2.Fill(dTable2)
Me.DataGridView1.DataSource = dTable2
The user adds new information by typing the data into the bottom row of the DataGridView.
What VB.net code would I use to insert these NEW records to the data table. Something like the following line
dbadp2.InsertCommand = builder.GetInsertCommand
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER