private void btnPesquisa_Click(object sender, EventArgs e) { DateTime dtini = dtpInicio.Value; DateTime dtfin = dtpFinal.Value; DALConexao cx = new DALConexao(DadosDaConexao.StringDeConexao); BLLCliente bll = new BLLCliente(cx); dgvDados.DataSource = bll.LocalizarPorDatar(dtini, dtfin); AtualizaDataGrid(); }