title: Change column type to DataGridViewCheckBoxColumn in C#
body: <p>I have a DataGridView in my form and it gets its source from a DataTable. Would there be a way to change the column type to a DataGridViewCheckBoxColumn after setting the source or would I have to insert each row and its cell separately and perform the change then</p>
  
  <p>Previous code:</p>
  
  <pre><code>Select("uspSelectChildByClientID", 
      new string[] { "clientID" }, new string[] { nodeTag.ToString() });
  dataGridViewC.DataSource = dataTable;
  </code></pre>
  
  <p>Intended code (if there's really no way to change it after getting the source):</p>
  
  <pre><code>Select("uspSelectChildByClientID", new string[] { "clientID" }, 
      new string[] { nodeTag.ToString() });
  for (int x = 0; x &lt; dataTable.Columns.Count; x++)
       dataGridViewC.Columns.Add("hello", dataTable.Columns[x].ColumnName.ToString());
  DataGridViewCheckBoxCell column = new DataGridViewCheckBoxCell();
  *add checkbox column and make another loop*
  </code></pre>