title: winForms + DataGridView binding to a List<T>
body: <p>I'm trying to bind a <code>List&lt;T&gt;</code> to a DataGridView control, and I'm not having any luck creating custom bindings.</p>
  
  <p>I have tried:</p>
  
  <pre><code>gvProgramCode.DataBindings.Add(new Binding("Opcode",code,"Opcode"));
  </code></pre>
  
  <p>It throws an exception, saying that nothing was found by that property name.</p>
  
  <p>The name of the column in question is "Opcode". The name of the property in the <code>List&lt;T&gt;</code> is Opcode.</p>
  
  <p><strong>ANSWER EDIT</strong>: the problem was that I did not have the bindable fields in my class as properties, just public fields...Apparently it doesn't reflect on fields, just properties.</p>