Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BeginUpdate / EndUpdate for DataGridView request

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

Is there something like BeginUpdate to temporary freeze DataGridView

like image 688
cnd Avatar asked Apr 28 '11 11:04

cnd


1 Answers

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();
like image 139
Jay Riggs Avatar answered Nov 15 '22 06:11

Jay Riggs