c# - listview: getting subitem text -


i have listview following columns id, surname, firstname. want surname when row selected how do using visual c# 2008?

subscribing selectedindexchanged listview1:

listview1.selecteditems[0].subitems[1].text 

you have tons of microsoft documentation it..

http://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem.listviewsubitem.aspx


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -