Пример #1
0
        private void btnRemove_Click(object sender, EventArgs e)
        {
            int             selectedrowindex = bunifuCustomDataGrid1.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = bunifuCustomDataGrid1.Rows[selectedrowindex];
            String          id            = Convert.ToString(selectedRow.Cells[0].Value);
            var             confirmResult = MessageBox.Show("Are you sure to delete this item ??",
                                                            "Confirm Delete!!",
                                                            MessageBoxButtons.YesNo);

            if (confirmResult == DialogResult.Yes)
            {
                sc.removeService(id);
                BindGridView(null);
                bunifuCustomDataGrid2.DataSource = null;
            }
        }