title: How can I prevent users from entering data into DataGridViewComboBoxCells?
body: <p>I have a project that uses a number of DataGridView controls.  Most of the cells are of the  DataGridViewTextBoxCell persuasion.  I declare my controls like so:</p>
  
  <pre><code>Dim MyCell as DataGridViewCell
  </code></pre>
  
  <p>Later I specify whether they are DataGridViewTextBoxControls or DataGridViewComboBoxCells like so:</p>
  
  <pre><code>MyCell = New DataGridViewTextBoxCell   ...or...
  MyCell = New DataGridViewComboBoxCell
  </code></pre>
  
  <p>None of the places in my code require the ability for the users to enter their own values in the Combo Boxes.  That is, they are either hard-coded or the values are gathered from other data within the application.</p>
  
  <p>Currently, users can highlight a combo box control defined as shown above and begin typing anything they like.  For example, I have one combo box that offers the user a selection of integers between 1 and 9.  I can highlight the combo box cell and enter "Hello, World!" if I'd like.</p>
  
  <p>What does it take to disable this ability?  I'm sure there's a property, but I have yet to find it.  I have searched the Internet, and have found only the ability to have user-entered values added to the list and a stream of data-binding tutorials.  </p>
  
  <p>Thank you in advance!
  C</p>