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.
I solved this issue by setting the DataRecord.ExpansionIndicatorVisibility to visible or hidden, depending on if the DataRecord has child records or not.
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