コード例 #1
0
        private void btnRemove_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(dgwProducts.CurrentRow.Cells[0].Value);

            _productDal.DeleteProduct(id);

            UpdateTable();
            MessageBox.Show("Procudt Deleted!");
        }