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
Printable View
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
ListView1.ListItems.AddQuote:
How can I insert a line in a ListView ?
Not that I know of ;-)Quote:
Is it possible to make it without shift all the lines after where I would like to insert the new line ?
What does SendMessage have to do with it?????Quote:
By using SendMessage ?
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.
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!