title: DataGridViewComboBoxColumn - type of items in the drop down list
body: <p>I have a DataGridView that has a ComboBox column. I populate this column's list with items of a type <strong>Field</strong>:  </p>
  
  <pre><code>DataGridViewComboBoxColumn fieldsColumn = argumentsDataGridView.Columns["field"] as DataGridViewComboBoxColumn;
              foreach (Field field in SessionData.Fields)
                  fieldsColumn.Items.Add(field);
              fieldsColumn.DisplayMember = "Name";  
  </code></pre>
  
  <p>Then after some user's action I put a value in the cell of this column like this:  </p>
  
  <pre><code>private void AddArgument(string argumentName, Field field)
          {
              int index = argumentsDataGridView.Rows.Count;
              argumentsDataGridView.Rows.Add(new DataGridViewRow());
              DataGridViewRow newRow = argumentsDataGridView.Rows[index];
              newRow.Cells["nameArg"].Value = argumentName;
              -&gt; newRow.Cells["field"].Value = field;
          }
  </code></pre>
  
  <p>If I now access the cell's Value, it is of a type <strong>Field</strong>. If I select different item from the combo, the cell's Value becomes a string. How can I handle it? I need items of type <strong>Field</strong>.</p>