title: Displaying a list of object containing a list in a grid view
body: <p>I am currently working on a bookmark manager application (Windows Forms), with advanced search capabilities.</p>
  
  <p>I have created a <code>Links</code> class, and every time a user enters a URL, I'll create a Link object and store the details there. It currently has the properties <code>Name</code>, <code>URL</code> and <code>Tags</code>, where <code>Tags</code> is a list.</p>
  
  <p>At runtime when I set the <code>DataSource</code> property of a gridview to the <code>List&lt;Links&gt;</code> objects, the <code>Name</code> and the <code>URL</code> show up but the <em>tags do not</em>.</p>
  
  <p>How do I go about displaying the list of tags inside the <code>List&lt;Links&gt;</code> object in the gridview?</p>
  
  <p><strong>EDIT:</strong> Just had an idea. What if I write a function to convert the <code>List&lt;Links&gt;</code> into a <code>DataTable</code>, and then set the <code>DataSource</code> property of the <code>DataGrid</code> to the <code>DataTable</code>?</p>
  
  <p>The problem with this is that everytime a change is made to the <code>List&lt;Links&gt;</code> I will have to generate the <code>DataTable</code> again, which does not seem ideal from a performance point of view.</p>
  
  <p><strong>EDIT 2:</strong>  I wish to display each item in the list as a DataGridViewTextBox column.</p>
  
  <p>Thanks,</p>
  
  <p>Abijeet.</p>