title: Prevent ItemChecked event on a ListView from interfering with SubItemClicked using C#
body: <p>I am using a <a href="http://www.codeproject.com/KB/list/ListViewCellEditors.aspx" rel="nofollow noreferrer">in-place editable listview</a> control for a project.</p>
  
  <p>The editable listview adds a 'SubItemClicked' event so that each 'cell' can be edited.</p>
  
  <pre><code>lstSD2.SubItemClicked += new ListViewEx.SubItemEventHandler(lstSD2_SubItemClicked);
  </code></pre>
  
  <p>I also have the listview checkboxes enabled with a 'ItemChecked' event.</p>
  
  <p>The problem is that once the 'ItemChecked' event is enabled double-clicking on any row fires the 'ItemChecked' event and prevents the 'SubItemClicked' event from firing.</p>
  
  <p>Is there a way to enforce the need to actually 'check' the listview checkbox instead of firing whenever the row is double-clicked?</p>
  
  <p>One possible solution is to disable the listview's 'DoubleClickActivation':</p>
  
  <pre><code>this.lstShuntData2.DoubleClickActivation = false;
  </code></pre>
  
  <p>The main drawback to this is that the users may find the listview a little too sensitive to any mouseclick.</p>