Beispiel #1
0
        protected void llenarGdvFamilias()
        {
            DataTable tblFamilias = bdTS.anlVvnObtenerFamiliasTS(S, L, TS, region);

            if (tblFamilias.Rows.Count > 0)
            {
                gdvFamilias.Columns[0].Visible    = true;
                gdvFamilias.Columns[1].HeaderText = dic.familia;
                gdvFamilias.Columns[2].HeaderText = "Análisis 2020";
                gdvFamilias.Columns[3].HeaderText = dic.clasificacion;
                gdvFamilias.Columns[4].HeaderText = dic.trabajadorS;
                gdvFamilias.Columns[5].HeaderText = dic.area;
                gdvFamilias.Columns[6].HeaderText = dic.direccion;
                gdvFamilias.Columns[7].HeaderText = dic.jefeCasa;
                gdvFamilias.Columns[8].HeaderText = dic.accion;
                gdvFamilias.DataSource            = tblFamilias;
                gdvFamilias.DataBind();
                gdvFamilias.Columns[0].Visible = false;
                pnlGdvFamilias.Visible         = true;
            }
            else
            {
                pnlGdvFamilias.Visible = false;
            }
        }