ListView

K

Kenneth

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 SelectedIndexChanged event for the listview



/Kenneth
 
J

Jan Hyde

"Kenneth" <[email protected]>'s wild thoughts were
released on Fri, 8 Oct 2004 20:28:58 +0200 bearing the
following fruit:
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?

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.




I scroll with PageUp, PageDown, Up, Down

I use SelectedIndexChanged event for the listview




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/]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top