private void btnExcluirContato_Click(object sender, EventArgs e) { int linhaSelec = GradePessoaContato.CurrentRow.Index; int Codigo = int.Parse(GradePessoaContato.Rows[linhaSelec].Cells["Id"].Value.ToString()); var pessoaContato = PessoaContatoBLL.GetContato(Codigo); if (PessoaContatoBLL.Remove(pessoaContato)) { CarregaDadosCliente(); } else { MessageBox.Show("Erro ao excluír!"); } }