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, "" }); } } } }
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)); } }