private void ButtonDelete_Click(object sender, EventArgs e) { if (MessageBox.Show("Delete Data", "Are You Sure?", MessageBoxButtons.YesNo) == DialogResult.Yes) { var query = "delete from groups where id = '" + id_group + "'"; SqlService.ExecuteQuery(query); LogApp.Delete("users", DgvRowToString.Generate(dgv, dgv.CurrentRow.Index), ""); Reload(); } }