예제 #1
0
        private void preencherDataGrid(int type)
        {
            MercadoModel mer = new MercadoModel();

            if (content == 1)
            {
                dt = mer.relatorioProdutos(Econobuy.Login.user_id, type);
                dataGridView1.DataSource = dt;
            }
            else if (content == 2)
            {
                dt = mer.relatorioPedidos(Econobuy.Login.user_id, type);
                dataGridView1.DataSource = dt;
                if (dt.Rows.Count > 0)
                {
                    dataGridView1.Columns["COD"].Visible = false;
                }
            }
            else
            {
                dt = mer.relatorioClientes(Econobuy.Login.user_id, type);
                dataGridView1.DataSource = dt;
            }
        }