title: Trying to load a list into a DataGridView Cell
body: <p>I'm trying to display an object into a DataGridView using Reflection</p>
  
  <p>so far everything works smootly but the problem is that some of the object's properties are Lists. How can I adapt my DataGridView to show a list?</p>
  
  <pre><code>public void SetDataSource(PluginBase plugin)
  {
      dgvProperties.Rows.Clear();
      List&lt;DataGridViewRow&gt; rows = new List&lt;DataGridViewRow&gt;();
  
      foreach (PropertyInfo info in typeof(PluginBase).GetProperties(BindingFlags.Public|BindingFlags.Instance))
      {
          object value = plugin.GetType().GetProperty(info.Name).GetValue(plugin, null);
  
          object[] o = new object[2];
  
          o[0] = info.Name;
          o[1] = value;
  
          DataGridViewRow dgvr = new DataGridViewRow();
          dgvr.CreateCells(dgvProperties, o);
          rows.Add(dgvr);
      }
  
      dgvProperties.Rows.AddRange(rows.ToArray());
  
  }
  </code></pre>