ListViews真的很慢吗? [英] Are ListViews really slow?

查看:106
本文介绍了ListViews真的很慢吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用LIstView的应用程序。

可能有100个项目,每个项目有20个子项目。


应用程序查看eack项目和子项目两次。

即,它扫描整个数据集

item1,sub1,sub2,...

item2,sub1,sub2 ...

..

..

两次


我从来没有跑过足够长的时间它完成了。

我在戴尔的XPS上使用3GHz CPU


这可能是访问ListView需要那么久吗? />

感谢您的帮助

I have an application that uses a LIstView.
Maybe 100 items each with 20 subitems.

The app looks at eack item and subitem twice.
I.e., it scans the entire set of data
item1, sub1,sub2,...
item2,sub1,sub2...
..
..
twice

I''ve never run it long enough for it to complete.
I''m using 3GHz CPU on an XPS by Dell

Could it be that accessing a ListView takes that long?

Thanks for any help

推荐答案

让我们看一些用于填充Listview的代码。


或者你可能想在开始添加项目之前放置一个BeginEdit,并且当你完成它时会有一个
EndEdit将有助于加快它的速度。


" TryingLikeHeck" < TR ************ @ aol.com>在消息中写道

news:20 *************************** @ mb-m16.aol.com。 ..
Let see some code for populating the Listview.

Or Maybe you want to put a BeginEdit before you start adding items and an
EndEdit when your done that will help speed it up a little.

"TryingLikeHeck" <tr************@aol.com> wrote in message
news:20***************************@mb-m16.aol.com...
我有一个使用LIstView的应用程序。
可能有100个项目,每个项目有20个子项目。

应用程序会查看eack项目和子项目两次。<即,它扫描整个数据集
item1,sub1,sub2,......
item2,sub1,sub2 ......


两次

我从来没有运行它足够长的时间来完成它。
我在戴尔的XPS上使用3GHz CPU

它可以吗访问ListView需要那么长时间吗?

感谢您的帮助
I have an application that uses a LIstView.
Maybe 100 items each with 20 subitems.

The app looks at eack item and subitem twice.
I.e., it scans the entire set of data
item1, sub1,sub2,...
item2,sub1,sub2...
.
.
twice

I''ve never run it long enough for it to complete.
I''m using 3GHz CPU on an XPS by Dell

Could it be that accessing a ListView takes that long?

Thanks for any help



听起来像代码中的内容。


我目前有一个带有Active Directory域列表视图的项目

控制器和属性(子项目中的属性)。在我们的域中,

目前有145个DC,所以有145个listview项目,每个项目有5个子项目。我没有看到任何缓慢的情况。


Jerry


" TryingLikeHeck" < TR ************ @ aol.com>在消息中写道

news:20 *************************** @ mb-m16.aol.com。 ..
Sounds like something in your code.

I''ve currently got a project with a listview for Active Directory Domain
controllers and properties (properties in the subitems). In our domain,
there are currently 145 DC, so 145 listview items, each with 5 subitems. I
don''t see any slowness there at all.

Jerry

"TryingLikeHeck" <tr************@aol.com> wrote in message
news:20***************************@mb-m16.aol.com...
我有一个使用LIstView的应用程序。
可能有100个项目,每个项目有20个子项目。

应用程序会查看eack项目和子项目两次。<即,它扫描整个数据集
item1,sub1,sub2,......
item2,sub1,sub2 ......


两次

我从来没有运行它足够长的时间来完成它。
我在戴尔的XPS上使用3GHz CPU

它可以吗访问ListView需要那么长时间吗?

感谢您的帮助
I have an application that uses a LIstView.
Maybe 100 items each with 20 subitems.

The app looks at eack item and subitem twice.
I.e., it scans the entire set of data
item1, sub1,sub2,...
item2,sub1,sub2...
.
.
twice

I''ve never run it long enough for it to complete.
I''m using 3GHz CPU on an XPS by Dell

Could it be that accessing a ListView takes that long?

Thanks for any help



我无法访问ListView本身,但你加载它的数据源

来自。那或者只是搜索listview的索引。默认情况下,你确实不应该为你的业务逻辑使用任何类型的用户界面


= CJ

" TryingLikeHeck" < TR ************ @ aol.com>在消息中写道

news:20 *************************** @ mb-m16.aol.com。 ..
I wouldn''t access the ListView itself, but the datasource the you loaded it
from. That or just search the index of the listview. By default, you
really shouldn''t use any sort of UI for your business logic

=CJ
"TryingLikeHeck" <tr************@aol.com> wrote in message
news:20***************************@mb-m16.aol.com...
我有一个使用LIstView的应用程序。
可能有100个项目,每个项目有20个子项目。

应用程序会查看eack项目和子项目两次。<即,它扫描整个数据集
item1,sub1,sub2,......
item2,sub1,sub2 ......


两次

我从来没有运行它足够长的时间来完成它。
我在戴尔的XPS上使用3GHz CPU

它可以吗访问ListView需要多长时间?

感谢您的帮助
I have an application that uses a LIstView.
Maybe 100 items each with 20 subitems.

The app looks at eack item and subitem twice.
I.e., it scans the entire set of data
item1, sub1,sub2,...
item2,sub1,sub2...
.
.
twice

I''ve never run it long enough for it to complete.
I''m using 3GHz CPU on an XPS by Dell

Could it be that accessing a ListView takes that long?

Thanks for any help



这篇关于ListViews真的很慢吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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