title: DataGridView, BindingList<T>, DataGridViewComboBoxColumn
body: <p>So, I have a DataGridView using as datasource a BindingList </p>
  
  <pre><code>DataGridView.DataSource = new  BindingList&lt;Car&gt;{...}
  </code></pre>
  
  <p>Where</p>
  
  <pre><code>public class Car
  {
      public ColorName Color { get; set;}
  }
  </code></pre>
  
  <p>with </p>
  
  <pre><code>public class ColorName
  {
      public int Id {get; set;}
      public string Name{get; set;}
  }
  </code></pre>
  
  <p>and I use a Combobox column:</p>
  
  <pre><code>DataGridViewComboBoxColumn colorNameDataGridViewTextBoxColumn;
  colorNameDataGridViewTextBoxColumn.DataPropertyName = "Color";
  colorNameDataGridViewTextBoxColumn.HeaderText = "Color";
  colorNameDataGridViewTextBoxColumn.Name = "Color";
  colorNameDataGridViewTextBoxColumn.DisplayMember = "Name";
  colorNameDataGridViewTextBoxColumn.ValueMember = "Id";
  colorNameDataGridViewTextBoxColumn.DataSource = new ColorName[] {...};
  </code></pre>
  
  <p>How can I get this to work ?! Now I get an exception because I think it tries to cast the Id to ColorName. </p>
  
  <p>I tried with an empty ValueMember or adding a direct cast operator to ColorName class but can't get it to work.</p>
  
  <p>Sure I can use an int in the Car class to represent the color but is not as nice.</p>
  
  <p>As you probably guessed those classes are in fact Castle Project ActiveRecord-s.</p>
  
  <p>Any ideas are welcome !</p>