title: Select combo item in Me.MyDataGridView.Rows(myRow).Cells(myCells)
body: <p>I seek for help on this issue. I found a lot of questions in forums, but mostly unanswered or with "solutions" they don't work (reported by other users, I tried them too).</p>
  
  <p>I simply would like to <strong>set a value</strong> from a list of values added to a ComboBoxCell in DataGridview, but it always ends up on "<em>datagridviewcomboboxcell value is not valid</em>" error</p>
  
  <p>I tried (according to answers in forums I found):</p>
  
  <p>1)</p>
  
  <pre><code>Me.MyDataGridView.Rows(myRow).Cells("myColumn").Value = "MyStringOrValue"
  </code></pre>
  
  <p>2) </p>
  
  <pre><code>CType(Me.MyDataGridView("MyColumn", Me.MyDataGridView.Rows.Count - 1), DataGridViewComboBoxCell).Value = "MyStringOrValue
  </code></pre>
  
  <p>3)</p>
  
  <pre><code>cell.Value = cell.Items.Item(1)
  </code></pre>
  
  <p>4)</p>
  
  <pre><code>Dim cell As DataGridViewComboBoxCell = Me.MyDataGridView.Rows(Me.MyDataGridView.Rows.Count - 1).Cells("MyColumn")
  cell.DisplayMember = CType(Me.MyDataGridView.Columns("MyColumn"), DataGridViewComboBoxColumn).DisplayMember
  cell.ValueMember = CType(Me.MyDataGridView.Columns("MyColumn"), DataGridViewComboBoxColumn).ValueMember
  cell.Value = cell.Items.Item(1)
  </code></pre>
  
  <p>5) Another edit: Counting cell items works, so THE PROBLEM is still, that it says, that cell.items.item(i) is not datatype-wise compactible with anything in cell.items - which is a mystery to me...</p>
  
  <pre><code>MsgBox("cell items = " &amp; cell.Items.Count)
  </code></pre>
  
  <p>...returns "6" as it should</p>
  
  <p>I appreciate any help. There has to be a way to select an item.</p>
  
  <p>Regards,</p>
  
  <p>Libor</p>