Is there a way to see if nothing in a listview is selected, preferably w/o looping through the whole thing? This is in embedded vb, btw. Selected a/o selecteditem don't work because nothing's selected. Thanks.
Printable View
Is there a way to see if nothing in a listview is selected, preferably w/o looping through the whole thing? This is in embedded vb, btw. Selected a/o selecteditem don't work because nothing's selected. Thanks.
Then are you saying "selected" do you mean row selection? Or you have a check boxes for each row and they can be selected?
If its just a normal listview...
VB Code:
If Listview1.SelectedItem Is Nothing Then MsgBox "No Selection!" End If
Thanks crptcblade, that worked. I tried that before, but used "= Nothing" instead of "Is Nothing".