I get a problem when adding columns to a dataGrid.
I keep adding columns with the code below.
It works well until the column will come outside the right side of the dataGrids Widh.
When it does, the program will get stuck for 2 minutes or so and the column was added.
I have both scrollbars on the dataGrid.
Anyone who can think of why this happen or have got the same problem before.
dataGridView1->Columns->Add(); //Add 1 more Column