Answer by Dan Lyons for Faster way of reading csv to grid
I am assuming it is OK to load everything into memory all at once, since you are doing that with the grid anyways. The fastest simple option I see is loading the data into a data object and binding it...
View ArticleAnswer by Bobson for Faster way of reading csv to grid
We use the GenericParser library. It's pretty easy to use, too. Your code would look something like this:GenericParserAdapter parser = new GenericParserAdapter(fName);parser.ColumnDelimiter =...
View ArticleAnswer by Paul Turner for Faster way of reading csv to grid
A few thoughts that could improve speed up what you're doing:Use parallel processing to process multiple lines simultaneously. If you've got a multi-core machine, this would go some way to offloading...
View ArticleAnswer by Ekkehard.Horner for Faster way of reading csv to grid
What's the use of presenting even 5,000 records to the user? Do you expect a user to scroll to row 4711, look at "18912,N", and say "Strange, why wasn't there a '12345,N' in row 1234?", or...
View ArticleAnswer by Sven for Faster way of reading csv to grid
There isn't much to optimize in regards to speed, but following is much more readable. If it is too slow, it probably isn't the method reading the file, but your WinForm that needs to display >30k...
View ArticleFaster way of reading csv to grid
I have following in Windows Forms .NET 3.5It works fine for csv with records less than 10,000 but is slower for records above 30,000.Input csv file can can any records between 1 - 1,00,000 records Code...
View Article
More Pages to Explore .....