的BeginUpdate / EndUpdate为DataGridView的请求BeginUpdate、EndUpdate、DataGridView

由网友(致命的玩笑゛)分享简介:我需要冻结(停止重绘)的DataGridView,而我处理领域的最新情况。I need to freeze (stop redrawing) DataGridView while I processing fields update.有什么样的BeginUpdate临时冻结的DataGridView Is the...

我需要冻结(停止重绘)的DataGridView,而我处理领域的最新情况。

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

有什么样的BeginUpdate临时冻结的DataGridView

Is there something like BeginUpdate to temporary freeze DataGridView

推荐答案

您最好的选择是使用扩展方法在亚当·罗宾逊的回答here.

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

使用它们与您的DataGridView是这样的:

Use them with your DataGridView like this:

yourDataGridView.SuspendDrawing();

// update your fields.

yourDataGridView.ResumeDrawing();
阅读全文

相关推荐

最新文章