How do I show the Street or Zip Code from the list below in the DataGridView.
People List ( to show in datagridview )
List<Pessoa> Pessoas;
Person Class
using System;
public class Pessoa
{
public int id { get; set; }
public string Nome { get; set; }
public Endereco Endereco { get; set; }
}
Class Address
using System;
public class Endereco
{
public int id { get; set; }
public string Rua { get; set; }
public string cep { get; set; }
}
My intention is to change the value that appears. The folder plus class is appearing: Model.Endereco