Listview items on parent form listview does not display



I have an application that has a form with a listview.
It has a function that I call to start the unit to sync with different
providers depending on the platform they are syncing against. Each provider
is it's own class. One class syncs against our existing webservices, and
the other directly to a tcp object living on a legacy desktop application.

Since both of these provider classes needed a reference to the listview on
the form, they had private members where I would set the form on the class
property so the child classes could access the listview on the form.

I recently started a new application, and decided to try letting these
classes inherit from the form with the display / logging functions so they
could just call the base class functions to display status.

All of the syncing works fine, but when the child classes call the base
class functions to add items to the listview to display the status, none of
the items are visible.

The parent form is an abstract class which the "provider1" and "provider2"
classes inherit from.

Is there something I have to do special in this child/parent relationship to
make sure the items are visible?


.



Relevant Pages

  • Re: Listview items on parent form listview does not display
    ... >I have an application that has a form with a listview. ... > provider is it's own class. ... > could just call the base class functions to display status. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Listview for realtime applications
    ... EventArgs e) ), null, null); ... add items and have the control just display them without flickering the ... display because it is redrawn for each item. ... item is added to the listview. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Data binding
    ... with 20 columns you should be using a Datagrid. ... ListView to display 19 subitems is no fun and ListBox won't ... writing a custom control to do this would not be terribly hard. ...
    (microsoft.public.pocketpc.developer)
  • Re: Listview for realtime applications
    ... You can control the updating of the ListView with BeginUpdate. ... I need to be able to add items and have the control just display them without flickering the display because it is redrawn for each item. ... Hence my reference to scrolling in my original post, the control can scroll down through items without flickering so there must be some way of adding items and using a similar rendering technique. ... private void flickerToolStripMenuItem_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Listview for realtime applications
    ... Therefore I cannot suspend updating and re-enable it while adding items, this is exactly what I do when using the listview in the manner you describe however it isn't applicable in this situation. ... I need to be able to add items and have the control just display them without flickering the display because it is redrawn for each item. ... Hence my reference to scrolling in my original post, the control can scroll down through items without flickering so there must be some way of adding items and using a similar rendering technique. ... private void flickerToolStripMenuItem_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.framework.windowsforms.controls)

Loading