protected override void excluirRegistro(int Id) { base.excluirRegistro(Id); rotaBLL = new RotaBLL(); if (Convert.ToInt32(dgvDados[0, dgvDados.CurrentRow.Index].Value) > 0) { Rota rota = rotaBLL.Localizar(Convert.ToInt32(dgvDados[0, dgvDados.CurrentRow.Index].Value)); if (MessageBox.Show("Deseja realmente excluir o registro : " + rota.cliente.nome_fantasia + " - " + rota.cidade.cNome, Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { rotaBLL.ExcluirRota(rota); } } }