title: Binding Listbox to a DataTable using Binding
body: <p>I'm new to this and Google isn't helping me this time. I was able to follow some examples and populate a DataGrid and modify a database, but ListView is giving me a problem. Here is my class:</p>
  
  <pre><code>public class GlobalDataviews : INotifyPropertyChanged   
  {
      ...
  
      //Billable data table
      //Populated elsewhere with "SELECT ID, Value FROM BillableTable;"
      private DataTable mBillable;
      public DataView Billable()
      {
          return mBillable.DefaultView; 
      }  
  }
  </code></pre>
  
  <p>Here is my XAML snippets:</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;ObjectDataProvider x:Key="GlobalDataviews" ObjectType="{x:Type local:GlobalDataviews}" /&gt;
      &lt;ObjectDataProvider x:Key="BillableData" ObjectInstance="{StaticResource GlobalDataviews}" MethodName="Billable" /&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>And now for my ListView:</p>
  
  <pre><code>&lt;ListBox Name="listBox1" DataContext="{StaticResource BillableData}" SelectedValuePath="ID" DisplayMemberPath="Value"/&gt;
  </code></pre>
  
  <p>I'm probably missing something very simple. What is the correct method? I would also like to bind the selected value (no multiselect) to another property from my code. Can anyone help? Not sure why I'm getting so confused.</p>