title: ASP.Net WebForms Model Binding GridView Using Entity Framework 5.0.0.0
body: <p>im binding <code>List&lt;T&gt;</code> to my <code>GridView</code> where <code>T</code> is the object created by <code>EntityFramework</code> from my database. There is a foreign key in my said table and i want to display its corresponding text value in the GridView. </p>
  
  <pre><code> &lt;asp:TemplateField HeaderText="Foreign Key Type"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:Label ID="LabelID" Visible="true"  runat="server"
                           Text="&lt;%# Item.&lt;foreignKeyTable&gt;.Text %&gt;"  &gt;
                &lt;/asp:Label&gt;                                               
            &lt;/ItemTemplate&gt;
   &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>when i do that i get the following error</p>
  
  <blockquote>
    <p>The operation cannot be completed because the DbContext has been disposed.</p>
  </blockquote>
  
  <p>how can i get pass that</p>