|
-
Jun 27th, 2000, 01:16 PM
#1
Thread Starter
Lively Member
How can I insert a line in a ListView ?
Is it possible to make it without shift all the lines after where I would like to insert the new line ?
By using SendMessage ?
Thanks
-
Jun 27th, 2000, 01:26 PM
#2
Hyperactive Member
How can I insert a line in a ListView ?
ListView1.ListItems.Add
Is it possible to make it without shift all the lines after where I would like to insert the new line ?
Not that I know of ;-)
What does SendMessage have to do with it?????
-
Jun 27th, 2000, 01:33 PM
#3
Thread Starter
Lively Member
Thanks Gen-X
But this function insert a line at the end of the list and I would like to insert a line in the list.
SendMessage is a API function that make a lot of thing, but I don't know the syntax (and the parameters) to use it.
-
Jun 27th, 2000, 05:41 PM
#4
Thread Starter
Lively Member
I find a solution to my problem. And the solution is ...
ListView1.ListItems.Add idx
Where idx is the index number where whe want to insert the line.
In fact, the update of all the index number in the listview is automatic. On to delete and to add item to the list.
That was so simple that I not see it immediately!
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
|