private void rbGeral_CheckedChanged(object sender, EventArgs e) { dgvDados.DataSource = null; DALConexao cx = new DALConexao(DadosDaConexao.StringDeConexao); BLLVenda bllvenda = new BLLVenda(cx); dgvDados.DataSource = bllvenda.LocalizarP(textBox1.Text.ToString()); this.AtualizaCabecalhoDGCompra(); }