title: How to switch between DataGridViewTextBoxCell and DataGridViewComboBoxCell?
body: <p>I want to have a DataGridView that has two columns.  The first column will always be of type DataGridViewComboBoxColumn.  Based on the selection in that column, I'd like to be able to change the corresponding cell in the second column to either a DataGridViewComboBoxCell or a DataGridViewTextBoxCell.</p>
  
  <p>I'm thinking I just need to make the second column of type DataGridViewColumn, but don't understand the mechanics of how to change the cell type on the fly.</p>
  
  <p>I'm working with VB.NET in Visual Studio 2005.</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Update:</strong>  One way around it, I suppose, is to make the second column as a DataGridViewComboBoxColumn, and change the attributes of the cell so that it either behaves like a drop-down list, or as an (editable) drop-down with no elements.  The latter looks enough like a text box that I could live with it, and it wouldn't involve changing the type of the cell.</p>