S Steve Murphy Jan 19, 2005 #1 Is there a way to set a selected index for a Listview in a WinForms application? Thanks in advance, Steve Murphy
Is there a way to set a selected index for a Listview in a WinForms application? Thanks in advance, Steve Murphy
M MuZZy Jan 19, 2005 #2 Steve said: Is there a way to set a selected index for a Listview in a WinForms application? Thanks in advance, Steve Murphy Click to expand... ListView1.Items[<***YourIndex***>].Selected = true; Good luck, Andrey
Steve said: Is there a way to set a selected index for a Listview in a WinForms application? Thanks in advance, Steve Murphy Click to expand... ListView1.Items[<***YourIndex***>].Selected = true; Good luck, Andrey
G Guest Jan 19, 2005 #3 Steve, Are you asking about the items collection? If you are you can do something like: listView1.Items[1].Selected = true; If this is not what you are asking about please repost with more specific details. Hope this helps.
Steve, Are you asking about the items collection? If you are you can do something like: listView1.Items[1].Selected = true; If this is not what you are asking about please repost with more specific details. Hope this helps.
S Steve Murphy Jan 21, 2005 #4 ListView1.Items[<***YourIndex***>].Selected = true; Click to expand... Thanks. That has helped. I don't know why I was overlooking that in the docs. Steve Murphy
ListView1.Items[<***YourIndex***>].Selected = true; Click to expand... Thanks. That has helped. I don't know why I was overlooking that in the docs. Steve Murphy
S Steve Murphy Jan 21, 2005 #5 Brian Brown said: Are you asking about the items collection? If you are you can do something like: listView1.Items[1].Selected = true; If this is not what you are asking about please repost with more specific details. Click to expand... Thanks. That did the trick. As I said to Andrey, I don't know how I overlooked it the docs. Anyway, I've pretty much got what I want working. Thanks again, Steve Murphy
Brian Brown said: Are you asking about the items collection? If you are you can do something like: listView1.Items[1].Selected = true; If this is not what you are asking about please repost with more specific details. Click to expand... Thanks. That did the trick. As I said to Andrey, I don't know how I overlooked it the docs. Anyway, I've pretty much got what I want working. Thanks again, Steve Murphy