title: DataBinding DataGridView List of Lists c# complex Collections
body: <p>I'm trying to bind a list of <code>page</code> classes to a <code>datagridview</code>.   </p>
  
  <pre><code>class Page : INotifyPropertyChanged
  {
      public List&lt;Tuple&lt;DateTime, String&gt;&gt; Lines { get; set; }
      public Color c { get; set; }
      public String filePath { get; set; }
  
  //rest of class code...
  }
  //on the 'Form1' class
  BindingList&lt;Page&gt; pages = new BindingList&lt;Page&gt;();
  </code></pre>
  
  <p>I want one row in the <code>datagridview</code> to represent a row in the list</p>
  
  <pre><code>List&lt;Tuple&lt;DateTime, String&gt;&gt; Lines
  </code></pre>
  
  <p>With one column for the <code>DateTime</code> and one for the corresponding <code>string</code>.</p>
  
  <p>Each row should be <code>color</code> coordinated to the <code>page</code> with which it belongs.</p>
  
  <p>I'm trying to bind it because I want the GUI to be updated live with updates to source files.</p>
  
  <p>My implementations have been going round in circles for days, any help/advice would be greatly appreciated. Thanks!</p>
  
  <p>edit: some sample data:</p>
  
  <pre><code>20-Apr-11 08:36:44.312   Start       I *** C:\Cromos 3.0\toolset\Ntbin\Release\crm_gui_gtm.exe on BENJAMIN-PC - release - cromos: build 2780, Gui version: 400, File version: 80 ***
  20-Apr-11 08:36:44.312   symbol element total: 9
  </code></pre>