예제 #1
0
        public void CarregarGrid()
        {
            DateTime dataAtual = Convert.ToDateTime(dtpData.Text);
            string   data      = dataAtual.Month.ToString();


            DgvListDespesa.DataSource = bll.ExibirMes(data);
            this.DgvListDespesa.Columns[0].Visible = false;
            this.DgvListDespesa.Columns[2].DefaultCellStyle.Format = "C";
            this.DgvListDespesa.Columns[3].Visible = false;
            this.DgvListDespesa.Columns[5].Visible = false;
            //txtPesquisarDespesa.Focus();
        }
예제 #2
0
        private void CarregarGridDespesa()
        {
            DateTime dataAtual = Convert.ToDateTime(dtpData.Text);

            string data = dataAtual.Month.ToString();

            dgvResumoDespesaHome.DataSource = bllDespesa.ExibirMes(data);

            this.dgvResumoDespesaHome.Columns[0].Visible = false;
            this.dgvResumoDespesaHome.Columns[2].DefaultCellStyle.Format = "C";
            this.dgvResumoDespesaHome.Columns[3].Visible = false;
            this.dgvResumoDespesaHome.Columns[5].Visible = false;
            this.dgvResumoDespesaHome.Columns[6].Visible = false;
            this.dgvResumoDespesaHome.Columns[8].Visible = false;
        }