Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 9:48
professionalChesnokov Yuriy31-Jan-11 9:48 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Pete O'Hanlon31-Jan-11 9:50
mvePete O'Hanlon31-Jan-11 9:50 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Eddy Vluggen31-Jan-11 10:44
professionalEddy Vluggen31-Jan-11 10:44 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Not Active31-Jan-11 12:13
mentorNot Active31-Jan-11 12:13 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Fabio Franco1-Feb-11 4:08
professionalFabio Franco1-Feb-11 4:08 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Dave Kreskowiak31-Jan-11 7:34
mveDave Kreskowiak31-Jan-11 7:34 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 9:56
professionalChesnokov Yuriy31-Jan-11 9:56 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Fabio Franco1-Feb-11 3:17
professionalFabio Franco1-Feb-11 3:17 
I think you have a complete misunderstanding of how event works. Events happen on demand, when you add 100,000 items all at once, you're simply blocking your application message pump from processing the messages sent by windows (also known as events) and therefore freezing.

It's possible to add this 100,000 items in the control without freezing, as already mentioned, by adding in small iteractions and from time to time, allowing the messages to be processed (one simple, but not usually recommended way to do it is call Application.DoEvents()) and thus not freezing the application.

In any case, I agree with the guys that 100,000 items in a listview is simply insane. It doesn't make sense, nobody want's to see 100,000 items all at once. One approach I like to take is to display a couple hundred at once at the most and have a textbox filtering the results as you type, very easy for the user.
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy1-Feb-11 3:39
professionalChesnokov Yuriy1-Feb-11 3:39 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Fabio Franco1-Feb-11 3:52
professionalFabio Franco1-Feb-11 3:52 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Euhemerus1-Feb-11 6:52
Euhemerus1-Feb-11 6:52 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Dave Kreskowiak1-Feb-11 12:23
mveDave Kreskowiak1-Feb-11 12:23 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Richard MacCutchan31-Jan-11 4:05
mveRichard MacCutchan31-Jan-11 4:05 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:43
professionalChesnokov Yuriy31-Jan-11 6:43 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Luc Pattyn31-Jan-11 4:13
sitebuilderLuc Pattyn31-Jan-11 4:13 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:49
professionalChesnokov Yuriy31-Jan-11 6:49 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Luc Pattyn31-Jan-11 6:57
sitebuilderLuc Pattyn31-Jan-11 6:57 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 7:03
professionalChesnokov Yuriy31-Jan-11 7:03 
QuestionRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:53
professionalChesnokov Yuriy31-Jan-11 6:53 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy31-Jan-11 6:55
professionalChesnokov Yuriy31-Jan-11 6:55 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Paw Jershauge31-Jan-11 9:00
Paw Jershauge31-Jan-11 9:00 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Richard MacCutchan31-Jan-11 9:15
mveRichard MacCutchan31-Jan-11 9:15 
GeneralRe: How to load 100,000 list view items without application freeze? Pin
Paw Jershauge31-Jan-11 12:18
Paw Jershauge31-Jan-11 12:18 
QuestionRe: How to load 100,000 list view items without application freeze? Pin
Chesnokov Yuriy1-Feb-11 1:14
professionalChesnokov Yuriy1-Feb-11 1:14 
AnswerRe: How to load 100,000 list view items without application freeze? Pin
Richard MacCutchan1-Feb-11 3:17
mveRichard MacCutchan1-Feb-11 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.