private void PBEliminarB_Click(object sender, EventArgs e) { if (dgv_bebidas.CurrentRow != null && dgv_bebidas.CurrentRow.DataBoundItem != null) { Bebida b = (dgv_bebidas.CurrentRow.DataBoundItem as Bebida); b.Eliminar(); } MostrarB(); }