ListView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kenneth

    ListView

    I have a listview that fill up some texboxes on a form when I select a
    listviewItem

    when I scrolldown in the listview the textbox is update for each item I set
    focus to.

    Now to the help I need

    If we say that for each item my program fetch data from a database, and if
    I scroll down 20 items it should be 20 questions to the database, what I
    want is only a database questions on the item I stop on.

    Any solution for this?


    I scroll with PageUp, PageDown, Up, Down

    I use SelectedIndexCh anged event for the listview



    /Kenneth


  • Jan Hyde

    #2
    Re: ListView

    "Kenneth" <kenneth@sagdal en.a.se>'s wild thoughts were
    released on Fri, 8 Oct 2004 20:28:58 +0200 bearing the
    following fruit:
    [color=blue]
    >I have a listview that fill up some texboxes on a form when I select a
    >listviewItem
    >
    >when I scrolldown in the listview the textbox is update for each item I set
    >focus to.
    >
    >Now to the help I need
    >
    >If we say that for each item my program fetch data from a database, and if
    >I scroll down 20 items it should be 20 questions to the database, what I
    >want is only a database questions on the item I stop on.
    >
    >Any solution for this?[/color]

    Only by changing your design.

    Have an 'View' button, and/or use the double click event of
    the listview to confirm your choice.

    It's hard to comment without knowing what your program is
    doing.




    [color=blue]
    >
    >I scroll with PageUp, PageDown, Up, Down
    >
    >I use SelectedIndexCh anged event for the listview
    >[/color]




    Jan Hyde (VB MVP)

    --
    I was shopping around for a car, and one salesman says,
    "You look like the kind of guy who'd want the AM/FM radio with
    removable face plate, the trunk-mounted Cd player, with 8 speakers
    and remote contol."

    I hate being stereotyped.

    (David Reihmer)

    [Abolish the TV License - http://www.tvlicensing.biz/]

    Comment

    Working...