title: C#: How to Bind Button.Enabled to Whether If There Is Any Item Selected of a ListView
body: <p>I have a question about Control.DataBindings.</p>
  
  <p>How can I bind Button.Enabled to whether if there is any item selected of a ListView? i.e.:</p>
  
  <pre><code>Button.Enabled = ListView.SelectedItems.Count &gt; 0;
  </code></pre>
  
  <p>I know that I can use ListView.SelectionChanged event to do this.</p>
  
  <p>I'm just wondering how can I use DataBinding to do the same job.</p>
  
  <p>Thanks.</p>
  
  <p>Peter</p>
  
  <p>P.S.: The reason I want to do this is: if Button.Enabled is depending on the conditions of a lot of other controls, I think DataBinding is simpler.</p>