9

I need to freeze (stop redrawing) DataGridView while I processing fields update.

Is there something like BeginUpdate to temporary freeze DataGridView

cnd
  • 32,616
  • 62
  • 183
  • 313

1 Answers1

9

Your best bet is to use the extension methods in Adam Robinson's answer here.

Use them with your DataGridView like this:

yourDataGridView.SuspendDrawing();

// update your fields.

yourDataGridView.ResumeDrawing();
Community
  • 1
  • 1
Jay Riggs
  • 53,046
  • 9
  • 139
  • 151