c# - How might I remove focus from all items in a ListView control? -


In a ListView control, the focus is on some items - Contains its inner perception of what is in Control Focus, which can be recovered using the FocusedItem property.

I would like to not in other words to focus things, I set the FocusedItem property to null Want to complete this idea with any idea?

To expand on the answer to Vanuan:

  ListView1.FocusedItem! = Null) {listView1.focusedItem.Focused = false; }  

Some tell me that you also want to deselect the item. Therefore, you probably also want to do this:

  if (listView1.selected.account! = 0) {listView1. Selected items [0]. Selected = false; }  

Comments