0
How do I show the Street or Zip Code of the list below in Datagridview.
People’s List (to display in datagridview)
List<Pessoa> Pessoas;
Classe Pessoa
using System;
public class Pessoa
{
public int id { get; set; }
public string Nome { get; set; }
public Endereco Endereco { get; set; }
}
Address class
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 is showing plus the class: Model.Endereco
How are you doing the bind datagrid?
– Jéf Bueno
'Bindingsource Bs = new Bindingsource();' 'Bs.Datasource = _List_nfgerar;' 'dgvNotas.Datasource = null;' 'dgvNotas.Datasource = Bs;'
– Luis Medeiros
Well, it’s certainly duplicated the question I pointed out. If you look there, you’ll get your solution.
– Jéf Bueno