Esempio n. 1
0
        private void BindGrid()
        {
            int   totalRows;
            int   dias = txtCantidadDias.Text == "" ? 0 : Convert.ToInt32(txtCantidadDias.Text);
            IGuia guia = GuiaFactory.GetGuia();

            SisPackController.AdministrarGrillas.Configurar(this.dtgGuias, "GuiaID", this.CantidadOpciones, true, true);
            this.dtgGuias.DataSource        = guia.GetReporteGuiaHistorico(dias, nroPagina, this.CantidadOpciones, out totalRows);
            this.dtgGuias.CurrentPageIndex  = nroPagina;
            this.dtgGuias.VirtualItemCount  = totalRows;
            this.dtgGuias.AllowCustomPaging = true;
            this.lblTotal.Text     = totalRows.ToString();
            this.lblTexto.Visible  = true;
            this.lblTotal.Visible  = true;
            this.lblTexto1.Visible = true;
            this.dtgGuias.DataBind();
        }