title: How to duplicate a DataGridview column to particular index position - C#?
body: <p>I have a datagridview which has 4 number of columns(A,B,C,D). The condition is sometimes the opeartor may need to duplicate column D with a different column name(at particular index position) but with exactly the same contents(for example column header text = 'copy of D'). I have tried the below code.</p>
  
  <pre><code>int lastcolidx = dataGridView3.Columns["SIGNAL TYPE"].Index;
  dataGridView3.Columns.Add(dataGridView3.Columns[lastcolidx].Clone() as DataGridViewColumn);
  </code></pre>
  
  <p>But this just adding the new empty column at the last position of the datagridview also the original column contents are not copied to new duplicated column. Please help me on how to do this</p>