Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Collapse and Expand DataRecordCellArea
posted

I need to collapse rows based on a filter selection in a dropdown.  The code below results in the rows being empty however the expansion control (+ sign) still appears.  What property must be set to remove the expansion designator?

<Style TargetType="{x:Type igDP:DataRecordCellArea}">
     <Style.Triggers>
           <DataTrigger Binding="{Binding ElementName=filterSelection, Path=SelectedItem.Name}" Value="Complete">
                <Setter Property="Visibility" Value="Hidden"/>
                <Setter Property="Height" Value="0"/>
            </DataTrigger>
      </Style.Triggers>
  </Style>

Parents
No Data
Reply
  • 685
    posted

    same questions.

    and if xamDataGrid won't check childCount for me (as it's lazy expansion), how do I show/hide individual row expansion indicator (+ sign) after I manually check the children count of that row in code?

    Thanks

Children