Windows Forms: Extra columns in DataGridView
<p>My DataGridView is showing extra columns. The application is a windows forms application. What could I be doing wrong?</p>

<pre><code>public ConvertisForm1()
    {
        InitializeComponent();
        openFileDialog.Filter = "Files| *.chm;*.htm;*.html;*.rtf;*.xls;*.xlsx;*.xps;*.doc;*.docx";    
    dataGridView.AutoGenerateColumns = false;
    dataGridView.RowHeadersVisible = false;
    dataGridView.ColumnCount = 5;

    dataGridView.RowCount = 20;
    //delete button
    var deleteDataGridViewButtonColumn = new DataGridViewButtonColumn
    {
        HeaderText = "",
        Name = deleteDataGridViewButtonColumnName,
        Text = "X",
        Width =20
    };
    dataGridView.Columns.Insert(DeleteColumnIndex, deleteDataGridViewButtonColumn);

    dataGridView.Columns[FileNameAndPathColumnIndex].Width=250;
    dataGridView.Columns[FileNameAndPathColumnIndex].HeaderText = "File Path";

    //browse button
    var browseDataGridViewButtonColumn = new DataGridViewButtonColumn
    {
        HeaderText = "",
        Name = browseDataGridViewButtonColumnName,
        Text = "...",
        Width = 30
    };
    dataGridView.Columns.Insert(BrowseButtonColumnIndex, browseDataGridViewButtonColumn);

    //convert to dropdown
    var convertToDataGridViewComboBoxColumn = new DataGridViewComboBoxColumn
    {
        HeaderText = "Convert to",
        Name = convertToDataGridViewComboBoxColumnName,
        DataSource = new ArrayList { convertToComboBoxDefault, "pdf", "word"},
        Width = 100,
        DefaultCellStyle =
        {
            NullValue = convertToComboBoxDefault,
            DataSourceNullValue = convertToComboBoxDefault
        }
    };

    dataGridView.Columns.Insert(ConvertToFileTypeColumnIndex, convertToDataGridViewComboBoxColumn);

    var convertDataGridViewButtonColumn = new DataGridViewButtonColumn
    {
        HeaderText = "",
        Name = convertDataGridViewButtonColumnName,
        Text = "Convert",
        Width = 50
    };
    dataGridView.Columns.Insert(ConvertButtonColumnIndex, convertDataGridViewButtonColumn);
    dataGridView.AllowUserToResizeColumns = false;
    dataGridView.AllowUserToResizeRows = false;
    #endregion
}
</code></pre>

<p><a href="https://i.stack.imgur.com/ANXod.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ANXod.jpg" alt="enter image description here"></a></p>