Example #1
0
        private void btnPesquisar_Click(object sender, EventArgs e)
        {
            var filtro = new AA_ParametrosViewModel(txtNome.Text, txtDescricao.Text);
            var param  = _docappservice.ListarParametros(filtro);

            dgvFiltro.DataSource = param.OrderBy(x => x.Cod_Parametro).ToList();

            Support.DataGridView_ConfigGrid(dgvFiltro, false);
            Support.DataGridView_ConfigCol(dgvFiltro, "NomeParametro", "Nome", 1, "", 0, DataGridViewAutoSizeColumnMode.DisplayedCells);
            Support.DataGridView_ConfigCol(dgvFiltro, "Descricao", "Descricao", 2, "", 0, DataGridViewAutoSizeColumnMode.Fill);
            Support.DataGridView_ConfigCol(dgvFiltro, "Valor", "Valor", 3, "", 0, DataGridViewAutoSizeColumnMode.DisplayedCells);
        }