Hi...
See in your delete() use like blow.
cmd = new MySqlCommand("delete from add2 where ID=@id", con);
cmd.Parameters.AddWithValue("@id", GridView1.Rows[e.RowIndex].Cells[1].Text);
and for edit() like this
gv.EditIndex = e.NewEditIndex;
its may helpful for u.
thank u.