title: Error trying to bind Datagridview with Entity Framework?
body: <p>Model:</p>
  
  <p><a href="https://i.stack.imgur.com/O2kVW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O2kVW.jpg" alt=""></a>
  </p>
  
  <p>Code:</p>
  
  <pre><code>  public partial class frmCotizaciones : Form
  {
      public frmCotizaciones()
      {
          InitializeComponent();
          using (var ctx = new AefesaEntities1())
          {
              dataGridView1.DataSource = ctx.Productos.ToList();
          }
      }
  }
  </code></pre>
  
  <p>Error:</p>
  
  <p><a href="https://i.stack.imgur.com/mjHft.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mjHft.jpg" alt=""></a>
  </p>
  
  <p>I'm new to Entity Framework, and I want to know how to use it, since I can see the advantages of using it. What I'm trying to do is simply bind the Productos dataset to the datagrid, but it throws that exception, I'd really appreciate your help. </p>