Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Problem with removing columns and rows in dataGridView

dariusUKdariusUK Member Posts: 1
Hi there,



  • aspongeasponge Member Posts: 42
    When you call dataGridView1.Columns.RemoveAt(0) the column at index 1 is automatically moved to index 0. Therefore to remove the first two columns you would call RemoveAt(0) twice.

    I suspect you are having the same issue when removing the first four rows. Just call Rows.RemoveAt(0) four times.
Sign In or Register to comment.