|
-
Jan 12th, 2000, 03:55 AM
#1
Thread Starter
New Member
****
I solved the problem, thanks to all for your attempt at helping.
Here is the code:
Set ListView.SelectedItem = ListView.ListItems(i)
****
I have a Listview populating from a database and sorts the data alphabetically.
Now when the user deletes an item from the database, it also refreshes the listview.
The question I have is, the listview always sets focus to the last item it added, however it does not add them alphabetically, so after there added and the listveiw sorts them, the item selected could be anywhere!? How can I have this list view set focus to the first entry? Or better yet one that I specify or has been saved (IE save the record ID when they exit the prog, so when they come back I can pull that and set focus to that item)??
Thanks for the help.
Bryan
[This message has been edited by Bryan (edited 01-12-2000).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|