Esempio n. 1
0
    private void GridBind2(string order)
    {
        string query = "";
        if (!pb.fl_admin())
        {
           // query = " and nm_acao <> 0 ";
           // query = " and t08.t03_cd_projeto in (select t03_cd_projeto from t03_projeto )";
           // GridView1.Columns[7].Visible = false;
        }
        t08_acao t08 = new t08_acao();
        {
            t08.fl_ativa = true;
            //lbltotal.Text = "(total: "+ t08.List().Tables[0].Rows.Count +" usuários)";
            t08.t03_cd_projeto = pb.cd_projeto();
            t08.order = ViewState["pesquisa"] + order;

            if (ViewState["pesquisa"] != null)
            {
                if (ViewState["pesquisa"].ToString() != "")
                {
                //lblfindtotal.Text = t08.List().Tables[0].Rows.Count + " encontrados ";
                }
                else { lblfindtotal.Text = ""; }
            }

            GridView1.DataSource = t08.List2();
            //GridView1.DataBind();
            //if (t08.List2().Tables[0].Rows.Count >= 1)
            //linkGraf.Visible = true;
            //else
            //linkGraf.Visible = false;
        }
    }