Ejemplo n.º 1
0
        public override void CargarGrid()
        {
            this.FormatearGrid();
            this._pregs  = new PreguntasCeps();
            this._prueba = new PruebaCeps("");
            for (int i = 0; i < 156; i++)
            {
                this._prueba.Respuestas.Add(new Respuesta("", (uint)i + 1, (uint)0));
            }

            this.Columns.Clear();
            this.Columns.Add("colNumero", "Numero");
            this.Columns.Add("colPregunta", "Pregunta");
            this.Columns.Add("colRespuesta", "Respuesta");

            this.Rows.Clear();
            if (this._pregs != null)
            {
                if (this.Columns.Count > 0)
                {
                    foreach (Pregunta preg in this._pregs.Preguntas)
                    {
                        this.Rows.Add(new object[] { preg.Numero, preg.Valor, "" });
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public GridCeps() : base()
 {
     this._prueba = new PruebaCeps("");
     for (int i = 0; i < 156; i++)
     {
         this._prueba.Respuestas.Add(new Respuesta("", (uint)i + 1, (uint)0));
     }
 }