Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to select an item automatically with it's highlight. thanks
Posted
Updated 14-Oct-13 2:36am
v2
Comments
Tiaan Lombard (TiLO) 14-Oct-13 10:52am    
listview1.selectedindex = 0 or 1 or 2 or whatever index you wish to highlight :)
Gadgetzoned 14-Oct-13 11:38am    
there is no .selectedindex
Jibesh 14-Oct-13 19:49pm    
listview does support a property called .SelectedIndex check following URL. try writing the code and compile to see it works or not. Visual Studio somestime may not display intellisense.

http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.selector.selectedindex.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900