在WPF Datatable.Rows.Clear()函数中花费更多时间 [英] IN WPF Datatable.Rows.Clear() function take more time

查看:199
本文介绍了在WPF Datatable.Rows.Clear()函数中花费更多时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WPF VS 2010开发应用程序

在此应用程序中

Datatable.Rows.Clear()函数的执行时间更长..

如何减少执行时间以及如何提高性能

I AM developing the application using WPF VS 2010

in this application

Datatable.Rows.Clear() function is take more time in execution..

How To Reduce the execution time and how to increase the performance

推荐答案

您始终可以一次清除一行,而不是全部清除. > 看看 Delete() 方法 [ ^ ].
You can always look at clearing one row at a time rather than clearing up all together.
Have a look at the Delete() method[^].


这篇关于在WPF Datatable.Rows.Clear()函数中花费更多时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆