Click here to Skip to main content
15,914,371 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: DateTimePicker date disable. Pin
Incvisitor4-Apr-09 3:29
Incvisitor4-Apr-09 3:29 
GeneralRe: DateTimePicker date disable. Pin
Luc Pattyn4-Apr-09 3:50
sitebuilderLuc Pattyn4-Apr-09 3:50 
AnswerRe: DateTimePicker date disable. Pin
jaypatel5129-Apr-09 21:02
jaypatel5129-Apr-09 21:02 
GeneralControl selection event alternatives Pin
Adrian Cole3-Apr-09 13:20
Adrian Cole3-Apr-09 13:20 
QuestionDisplaying Tournament Brackets Pin
aslamc3-Apr-09 12:42
aslamc3-Apr-09 12:42 
QuestionTooltip for Combobox Pin
Vikram.....3-Apr-09 1:48
Vikram.....3-Apr-09 1:48 
AnswerRe: Tooltip for Combobox Pin
Juan1R13-Apr-09 4:28
Juan1R13-Apr-09 4:28 
QuestionListView Virtual data from disk Pin
Polity2-Apr-09 9:23
Polity2-Apr-09 9:23 
(Note that this post might seem familiar since i already posted it on the MSDN forums which was the wrong place)

Hello,

First of all, sorry for the title and the location of this post. i'm still sure i did something wrong there Smile | :) .

Now for the situation: I have a datasource ( +- 20 mb ) containing more then 100 000 elements where each element contains 4 properties which i need to download from the web.
Then i need to display this datasource in a winforms app. I only need to download this datasource once so it seems logical i save it at the disk for persistence. The datasource is already sorted by name which is good since its a requirement to search for certain elements within the datasource. My goals are to achief the above situation with the least system resources consumption possible ( not that its strictly required but... heck, you know what i mean Wink | ;) )

Current progress: I download the datasource chunk by chunk so i can progress one element at a time. When a element got retrieved, i immidiatly create an object out of it and serializes it to the disk to a single file (shared by each element ofcourse) using the XmlSerializer. So far, all goes great, i made a few optimalisations where i dont serialize each element one by one but rather store them in a buffer of X size and serializes the buffer when full, which seems to improve performance.

When all elements are downloaded and stored, i use a listview in detailed view with multiple colums and virtual mode on. As far as i know, this should be one of the most efficient ways of displaying the data. Now comes the real bottleneck. I need to read in the data dynamicly, that is if i need element X to Y and dont want to read in any elements outside that range. XmlSerialization is no go since it always reads in all data, So does XmlDocument (and its rather slow). I cant use XLinq since im targeting .NET 2.0 so i was thinking about XPathDocument. XPathDocument comes with a few drawbacks for what i know. Most importantly, it seems that its loading the entire document in memory which i try to avoid. Next, when for example, scrolling up in the listview, i cant seem to find a way within the navigator to navigate upwards, even better. I cant seem to access a specific element at an index without having to create a new navigator, but these problems might just also be my lack of knowledge of the XPathDocument.

Question: Can anyone help me determine the best way to handle this specific situation?
Note that im not restricted to the above situation so please correct me on ANY part.

Thanks in advance,

Koen
AnswerRe: ListView Virtual data from disk Pin
Mycroft Holmes2-Apr-09 22:14
professionalMycroft Holmes2-Apr-09 22:14 
GeneralRe: ListView Virtual data from disk Pin
Polity3-Apr-09 5:51
Polity3-Apr-09 5:51 
QuestionSourceGrid, how to use different fonts in different cells Pin
balukg2-Apr-09 5:01
balukg2-Apr-09 5:01 
AnswerRe: SourceGrid, how to use different fonts in different cells Pin
Henry Minute2-Apr-09 6:59
Henry Minute2-Apr-09 6:59 
QuestionIs it possible to shadow IsMdiContainer? Pin
Gregory Gadow1-Apr-09 16:47
Gregory Gadow1-Apr-09 16:47 
AnswerRe: Is it possible to shadow IsMdiContainer? Pin
Colin Angus Mackay1-Apr-09 23:49
Colin Angus Mackay1-Apr-09 23:49 
GeneralRe: Is it possible to shadow IsMdiContainer? Pin
Gregory Gadow2-Apr-09 3:37
Gregory Gadow2-Apr-09 3:37 
QuestionOnly MySqlParameter objects may be stored Pin
naim khan1-Apr-09 11:21
naim khan1-Apr-09 11:21 
AnswerRe: Only MySqlParameter objects may be stored Pin
Henry Minute1-Apr-09 12:01
Henry Minute1-Apr-09 12:01 
AnswerRe: Only MySqlParameter objects may be stored Pin
Henry Minute2-Apr-09 7:07
Henry Minute2-Apr-09 7:07 
GeneralRe: Only MySqlParameter objects may be stored Pin
Luc Pattyn2-Apr-09 9:01
sitebuilderLuc Pattyn2-Apr-09 9:01 
QuestionNeed sugestion on what font to use with Unicode chars Pin
Christian Wikander1-Apr-09 2:39
Christian Wikander1-Apr-09 2:39 
QuestionRe: Need sugestion on what font to use with Unicode chars Pin
led mike1-Apr-09 5:32
led mike1-Apr-09 5:32 
GeneralRe: Need sugestion on what font to use with Unicode chars Pin
Christian Wikander1-Apr-09 22:36
Christian Wikander1-Apr-09 22:36 
GeneralRe: Need sugestion on what font to use with Unicode chars Pin
led mike10-Apr-09 4:41
led mike10-Apr-09 4:41 
GeneralRe: Need sugestion on what font to use with Unicode chars Pin
Christian Wikander13-Apr-09 21:00
Christian Wikander13-Apr-09 21:00 
Questiongenerate a html help file Pin
soussouprog31-Mar-09 3:10
soussouprog31-Mar-09 3:10 

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.