ListView slow performance?

  • Thread starter Thread starter chook.harel
  • Start date Start date
C

chook.harel

Hi, I have a list view that shows a table of information to the user
(the information comes from SQL MOBILE).
The problem is that the user wants to naviagate the table via arrow
buttons that my portable have. (PPC2003).

When there are few items, the navigate procedure is done very fast,
but when I put 400 items, the navigation began to go really slow,
and the user said it was unacceptable.

How can this be changed?
I am not familiar with how list view works, but why does it matters how
much details he have, when all he needs to do, for my understanding is
to focus and select the next item in the list.

Maybe I should use a diffrent object? something that has a better
algorithem?

I would have love to hear your saying on the subject.
Thanks,
 
Loading a UI widget full of data will be slow compared to a UI widget with
little amount of data. As you say its the scrolling up and down which is
slow as well as creating the collection. I guess this is a problem with the
way the listview redraws it's contents. Maybe all items are redrawn on a
scroll event.
I too had this problem so rolled my own which mimics the Pocket Outlook
control with much richer functionality and only redraws the visible items on
scroll bar events.

If you wish not to do this, then implement somekind of paging. I have done
this too, and it is good practice if you anticipate having potentially
thousands of records.

Simon.
 
I've tried the DataGrid object... and for my surprise it didn't have
the problem
moreover it connected independently to the sql mobile (after some
modifications of course) but buttom line is that the speed problem was
solved.
Now the only problem I confront with is figuring out this component
throughly because it spilled out so much code to my project that i'm
having hard time keep up.

2 questions, is the CF Datagrid componant diffrent from the regular
..net framework one?
and second, Do you think its a good solution to use it ?
 
2 questions, is the CF Datagrid componant diffrent from the regular
.net framework one?

Only in that (like most classes in the CF) many .NET Framework features are
missing.
and second, Do you think its a good solution to use it ?

This depends on what requirements you have. I personally have not used it in
the CF, but this
doesn't mean it is not a good control to use.

I usually role my own because I often need additional functionality that is
not often available in the
standard controls.

Simon.
 
Back
Top