Cancel selection in ListView on MouseClick

  • Thread starter Thread starter Etienne Lebeau
  • Start date Start date
E

Etienne Lebeau

I would like to cancel the selection of the ListViewItem in the
ListView on MouseClick?
Any help would be appreciated.

Etienne Lebeau, ing. jr.
Software Designer
Matrox Graphics
(e-mail address removed)
 
Hi,

Probably more than one way to do this. Here's one way:
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
{
listView1.SelectedIndices.Clear();
}

Mike
http://www.seeknsnatch.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top