|
-
Jan 2nd, 2002, 11:34 AM
#1
Adding Items to LIstviews at Runtime......HELP!
I need the ability to add/delete/modify rows to a listview.
***********************************
* name * Ip address* Status * Ping*
***********************************
* Joe * 24.5.123.1* online * 123 *
* Bill * 24.1.2.3 * online * 234 *
* etc. *
***********************************
These rows can change at any time depending if someone is connected. I also do not know in advance how many rows there will be.
Problem: Listviews want you to define the row items (name, joe bill, etc) in the code before you start using them??? How can I do this or should I use a different control such as the GRID Control?......Much appreciate your answers.
-
Jan 2nd, 2002, 11:59 AM
#2
Fanatic Member
Use the string array to store name*ip address...... and then
modify this array and use
Code:
List.Clear
List.Additem Array(index)
Kinjal
-
Jan 2nd, 2002, 12:21 PM
#3
understood.....but
Yes this would do it........but I then have to keep track of how many connections are added to array and make sure I allocate enough elements in the array, I really don't know how many connections Im going to have so using the array could be risky?
Is there not a better way? Is this it?
-
Jan 3rd, 2002, 07:45 AM
#4
Fanatic Member
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
|