List View class makes the life easier. It represents a Windows list view control, which displays a collection of items that can be displayed using one of four different views.
I know this is not related to Windows Tips and Tricks. But since this blog is dedicated for helping users…. I decided to write the guide.
WinGuggle 2.1 System Summary tab is using a list view control written in VB.net.
WinTinker Password Generator Web Applications Tab also uses a list view control
There is no SelectedIndex property in List View that’s why its very difficult to get the selected item text using its index.
Thankfully I found a workaround to get the selected index.
if (ListView1.SelectedItems[0].ToString().IndexOf("Audio") > 0) } |
Using the SelectedIndexChanged Event
private void ListViewWeb_SelectedIndexChanged(object sender, EventArgs e) |
Hope this helps!
0 Comments:
Post a Comment