title: List<Tuple<T1,T2>> as DataSource for GridView
body: <p>I'd like to add a <code>List&lt;Tuple&lt;T1,T2&gt;&gt;</code> as <code>DataSource</code> for my <code>GridView</code>.</p>
  
  <p>"Then do it!"</p>
  
  <p>Yeah, that's not really the problem, the problem is accessing the values inside the GridView.</p>
  
  <p>Here's my Code:</p>
  
  <pre><code>List&lt;Tuple&lt;Group, string&gt;&gt; userGroups = Util.PrepareGroups((string[][])Session["userGroups"]);
              gridGroups.DataSource = userGroups;
              gridGroups.DataBind();
  </code></pre>
  
  <p>Throws an exception at <code>DataBind</code>, telling me that Item1.Name doesn't exist, speaking of this, here's my markup:</p>
  
  <pre><code>&lt;asp:GridView runat="server" ID="gridGroups" CssClass="grid gridGroups" AutoGenerateColumns="false"&gt;
              &lt;Columns&gt;
              &lt;asp:BoundField meta:resourcekey="gridGroupsName" DataField="Item1.Name" /&gt;
              &lt;asp:BoundField meta:resourcekey="gridGroupsFunction" DataField="Item2" /&gt;
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Needless to say, <code>Item1</code> is the Group and <code>Name</code>is a <code>string</code>-Property.<br>
  He (yes, he, my IDE is called Bob) obviously doesn't find Item1.Name, is there any way to escape the <code>.</code>? </p>
  
  <p>Thanks,</p>
  
  <p>Dennis</p>