Link to home
Start Free TrialLog in
Avatar of tvtech
tvtechFlag for Australia

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

Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Hi, use listview1.listitems(i).selected = true; i = listview.listitems.index

ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tvtech

ASKER

Thanks very much for the response. Much appreciated.

Regards,
   Tony