title: DataGrid RowStyle - Binding Value in DataTrigger
body: <p>I want to build a <code>RowStyle</code> which changes the <code>Visibility</code> of the Rows, depending on two conditions (OR).</p>
  
  <p>Per default all Rows should be collapsed an be visible whether a Boolean (in ViewModel) is set to <code>True</code> OR a value in the <code>DataTable</code>, bound to the <code>Datagrid</code>, equals to the current User. So, the current user is, of course, a Property too.</p>
  
  <pre><code>&lt;DataGrid.RowStyle&gt;
      &lt;Style TargetType="{x:Type DataGridRow}"&gt;
          &lt;Setter Property="Visibility" Value="Collapsed" /&gt;
          &lt;Style.Triggers&gt;
              &lt;DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window},Mode=FindAncestor},Path=DataContext.ColleaguesVisible}" Value="True"&gt;
                  &lt;Setter Property="Visibility" Value="Visible" /&gt;
              &lt;/DataTrigger&gt;
              &lt;DataTrigger Binding="{Binding CreatingUser}" Value="{Binding CurrentStaffMember}"&gt;
                  &lt;Setter Property="Visibility" Value="Visible" /&gt;
              &lt;/DataTrigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  &lt;/DataGrid.RowStyle&gt;
  </code></pre>
  
  <p>But at the Value Binding there's the error...</p>
  
  <p>I already searched around, but I couldn't find a solution for this problem.</p>
  
  <p>I hope someone can help me.</p>