Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click ' ' Control Validation ' changeState(True) inputEnabled(False) Dim dr As DataRow dr = ds.Tables(0).NewRow() dr(0) = txtRollNo.Text dr(1) = txtName.Text dr(2) = txtClass.Text ds.Tables(0).Rows.Add(dr) build = New SqlCommandBuilder(ada) ada.Update(ds) 'Error causes line' End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)