private void btnDelete_Click(object sender, EventArgs e) { try { BL.categories Cat = new BL.categories(); cat.delCat(this.bunifuCustomDataGrid1.CurrentRow.Cells[1].Value.ToString()); MessageBox.Show("هل تريد الحذف ؟", "عملية الحذف", MessageBoxButtons.OK, MessageBoxIcon.Question); this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }