No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
HERE I WANTED TO FILL MY BLANK RECORD WITH ITS VALID DATA private void button5_Click(object sender, EventArgs e)//modify { comm.Connection = conn; comm.CommandText = " UPDATE Table1 SET total='" + textBox6.Text + "',result='" + label7.Text + "' WHERE Fname ='" + textBox1.Text + "'"; conn.Open(); comm.ExecuteNonQuery(); conn.Close(); dataGridView1.Update(); } I … | |
private void button4_Click(object sender, EventArgs e)//delete { conn.Open(); comm.Connection = conn; comm.CommandText = " DELETE FROM Table1 WHERE Fname =" + textBox1.Text + ""; dataGridView1.Update(); conn.Close(); } HERE AM UNABLE TU DELETE THE RECORD IN MY DB .. |