How can I suspend a .NET DataGridView from displaying anything while I update its Columns?
Here\'s my current code. It works ok, but it is very slow on the foreach
In my case suspend and resume layout did not work. I resolved disabling the dataGridView (dgv.Enabled = false) before update and re-enabling it (dgv.Enabled = true) at the end of the update process.
dgv.Enabled = false
dgv.Enabled = true