Exemplo n.º 1
0
        private void MostrarData()
        {
            var fila = new DataGridViewRow();

            fila.CreateCells(dgv);

            for (var i = 0; i < app.GetArrayCount(); i++)
            {
                fila.Cells[0].Value = app.GetPersona(i).nombre;
                fila.Cells[1].Value = app.GetPersona(i).apellido;
                fila.Cells[2].Value = app.GetPersona(i).edad;
                fila.Cells[3].Value = app.GetPersona(i).fechaNac.Date.ToString();
                fila.Cells[4].Value = app.GetPersona(i).direccion;
                fila.Cells[5].Value = app.GetPersona(i).provincia;
                fila.Cells[6].Value = app.GetPersona(i).pais;
                fila.Cells[7].Value = app.GetPersona(i).telefono;
                fila.Cells[8].Value = app.GetPersona(i).celular;
            }

            dgv.Rows.Add(fila);
        }