try this code for update sql table
cmd = New SqlCommand("update std set name=" & "'" & TextBox2.Text & "'" & "," & "," & "Age=" & TextBox3.Text & "where id=" & TextBox1.Text & "", cn)
cmd.ExecuteNonQuery()
adp.Fill(ds, "tabel name")
MsgBox("Record Updated.....")
for delete
cmd = New SqlCommand("Delete from tablename where id=" & TextBox1.Text & " ", cn)
cmd.ExecuteNonQuery()
adp.Fill(ds, "table name")
MsgBox("Record Deleted....")