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>
I resolved this by setting the visibility for the records in the grid - the largest issue involved navigating the group by records and turning on or off their visibility.