title: How to Filter a DataView by another datatable row attribute
body: <p>I have 2 methods that I do not have any control over.</p>
  
  <p>One returns me all dates with needed unique code(one of the row column <code>row[code]</code>) as <code>DataView</code>.</p>
  
  <pre><code> DataView allDatesWithCode= portal.GetAllDatesWithCode();
  </code></pre>
  
  <p>And another method returns me only available dates but without the code.</p>
  
  <pre><code>DataTable availableDates = portal.GetAvailableDates();
  </code></pre>
  
  <p>Both <strong>allDatesWithCode</strong> and <strong>availaleDates</strong> has a common date column (<code>row[date]</code>).</p>
  
  <p>How can I filter <code>allDatesWithCode</code> with <code>availableDates</code> to have only available dates with code?</p>
  
  <pre><code>DataView availableDatesWithCode = allDatesWithCode // (filtered by available date).
  </code></pre>
  
  <p>And If I had control over the <code>portal.GetAllDatesWithCode()</code> and <code>portal.GetAllDatesWithCode</code> would it make it better to have both as <code>DataTable</code> or <code>DataView</code>?
  <img src="https://i.stack.imgur.com/ekd18.png" alt="enter image description here"></p>