tvtech
asked on
Listview auto-insert to Row
Greetings,
I need the following to occur, but am having difficulty making it happen.
I have a Listview set up with multiple Rows and 2 Columns. A name is entered into the first Column by the user.
If the Listview Count = 1 only, I need the second Column to auto-update with the word 'Default'.
I have tried SendKeys to get the focus into the first Row, but this doesn't always work. Can someone please suggest a better way.
Thank you.
Regards,
Tony
I need the following to occur, but am having difficulty making it happen.
I have a Listview set up with multiple Rows and 2 Columns. A name is entered into the first Column by the user.
If the Listview Count = 1 only, I need the second Column to auto-update with the word 'Default'.
I have tried SendKeys to get the focus into the first Row, but this doesn't always work. Can someone please suggest a better way.
Thank you.
Regards,
Tony
Hi, use listview1.listitems(i).sel ected = true; i = listview.listitems.index
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much for the response. Much appreciated.
Regards,
Tony
Regards,
Tony