private void btnDelete_Click(object sender, EventArgs e) { try { stock = new Stock() { ID = add_Stock._ID }; stockManager = new StockManager(); stockManager.Delete(stock); MessageBox.Show("Successfully Deleted!"); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } FillGrid(); btnDelete.Enabled = false; btnEdit.Enabled = false; }