title: Binding generic collection List<> to property grid
body: <p>I try binding generic collection <strong>listContact</strong> to <strong>propGrid</strong> but output does not match what I expected. I want <strong>listContact</strong> to be shown like <strong>ListBox</strong> in <strong>propGrid</strong>. How do I do it? Thank you.  </p>
  
  <pre><code>class Contact
  {
      public string Name { get; set; }
      public string Address { get; set; }
  }
  
  PropertyGrid propGrid = new PropertyGrid();
  List&lt;Contact&gt; listContact   = new List&lt;Contact&gt;();
  
  private void Form1_Load(object sender, EventArgs e)
  {
      listContact.Clear();
      Contact newContact = null;
  
      newContact = new Contact();
      newContact.Name = "diana";
      newContact.Address = "en";
      listContact.Add(newContact);
  
      newContact = null;
      newContact = new Contact();
      newContact.Name = "maxim";
      newContact.Address = "cand";
      listContact.Add(newContact);
  
      propGrid.SelectedObject = listContact;
      this.Controls.Add(propGrid);
      propGrid.Dock = DockStyle.Fill;
  
  }
  </code></pre>