title: Access invisible columns in a Datagridview (WinForms)
body: <p>I'm showing some data in a <code>DataGridView</code> using a list which I get from the Entity Framework. In this grid I set some database columns like the <code>id</code> to invisible.</p>
  
  <p>When the user clicks on the gridview I need to know which object was clicked for further steps, the problem I cannot get the <code>id</code> column, neither through:</p>
  
  <pre><code>datagridview1.CurrentRow.Cells[0].Value // here I get only visible cells
  </code></pre>
  
  <p>nor through:</p>
  
  <pre><code>datagridview1.CurrentRow.DataBoundItem 
  </code></pre>
  
  <p>It seems that through setting some columns to invisible the objects attached have anonymous types</p>
  
  <p>Any ideas?</p>
  
  <p>Thank you</p>