mrdutchie Posted April 30, 2004 Posted April 30, 2004 Is there a way to load 40.000+ items in a "Checkedlistbox" in just 2-3 seconds? (like other news programs do) I am able to put it in a Datagrid with that speed, but would like the checked listbox for it. With the datagrid it looks like this line is making it so fast myDataSet.Tables(ImportFileName).Rows.Add(CurrentLine.Split(" ")) I tried this in a listbox but then again... it's very slow and the data is not right. I am using VB.NET and it's a Windows application. Any thoughts on this? Quote
AlexCode Posted April 30, 2004 Posted April 30, 2004 Did you tryed a ListView instead of a ListBox? Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
mrdutchie Posted April 30, 2004 Author Posted April 30, 2004 No I didn't.. since I wanted the checkboxes also.. Let me check right now to see if that's faster or not Quote
AlexCode Posted April 30, 2004 Posted April 30, 2004 If it improves the speed you can use it because it also supports CheckBoxes... Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
mrdutchie Posted April 30, 2004 Author Posted April 30, 2004 Ok, tried it, and is working too now, but it takes about 10 seconds for all the items to show up.. it's still way too long, since when I see other programs, it only takes 2-3 seconds.. Quote
AlexCode Posted April 30, 2004 Posted April 30, 2004 when you say "other programs" you're specifically refeering to other .net programs using ADO.net? I may not! Try to fill the data the old ADO (not ADO.net) fashion way... Ado.net prior to fill the objects fills all the data do memory so it takes longer, although it's fast after... the memory data manipulation it's a lot faster... So you'll have to choose... Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
Arch4ngel Posted April 30, 2004 Posted April 30, 2004 Hummmm... do a Application.DoEvents() Before the filling. Maybe it'll let the form more... fluid. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.