Beispiel #1
0
        private void mtdRecargarGrid()
        {
            clMostrar objDonante = new clMostrar();

            RegistrarDonante = objDonante.mtdListar();

            dgvRegistrarDonante.Rows.Clear();

            for (int i = 0; i < RegistrarDonante.Count; i++)
            {
                dgvRegistrarDonante.Rows.Add();
                dgvRegistrarDonante.Rows[i].Cells["Nombre"].Value          = RegistrarDonante[i].Nombre;
                dgvRegistrarDonante.Rows[i].Cells["Apellido"].Value        = RegistrarDonante[i].Apellido;
                dgvRegistrarDonante.Rows[i].Cells["Documento"].Value       = RegistrarDonante[i].Documento;
                dgvRegistrarDonante.Rows[i].Cells["Edad"].Value            = RegistrarDonante[i].Edad;
                dgvRegistrarDonante.Rows[i].Cells["FechaNacimiento"].Value = RegistrarDonante[i].FechaNacimiento;
                dgvRegistrarDonante.Rows[i].Cells["Peso"].Value            = RegistrarDonante[i].Peso;
                dgvRegistrarDonante.Rows[i].Cells["Genero"].Value          = RegistrarDonante[i].Genero;
                dgvRegistrarDonante.Rows[i].Cells["Rh"].Value         = RegistrarDonante[i].RH;
                dgvRegistrarDonante.Rows[i].Cells["tipoSangre"].Value = RegistrarDonante[i].TipoSangre;
                dgvRegistrarDonante.Rows[i].Cells["Telefono"].Value   = RegistrarDonante[i].Telefono;
                dgvRegistrarDonante.Rows[i].Cells["Email"].Value      = RegistrarDonante[i].Email;
                //   dgvListarDonante.Rows[i].Cells["Ver"].Value = "Ver Detalles";//
            }
        }
Beispiel #2
0
        private void MostrarProductos()
        {
            clMostrar objDonante = new clMostrar();



            dgvDonante.DataSource = RegistrarDonante;
        }