Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

when i select an item in my listview, i set the item index into a variable. however, i just wanted to know, is there a way to remove the item index value if you click on a portion of the listview where nothing exists?

 

For instance, my listview contains space to have twenty items in the table. when i display my data, only two rows are filled. i select one row, and i place that index number in a variable. but suppose i select the fourth line of the listview, there is nothing there and the original item i selected is not highlighted, yet the variable still contains the original index number that i first selected. is there a way to remove that original index number? the reason i need to know is because if someone presses a specific button and there is nothing highlighted, but there was something selected prior to that, then the user will not be able to tell which row they were deleting.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...