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
220
Hiding record in XamDataGrid
posted

I would like to hide some records in a XamDataGrid. I use a setter to do so as shown below.

<igWPF:XamDataGrid.Resources>


<Style TargetType="{x:Type igWPF:CellValuePresenter}">


<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=DataContext.DataItem.Description}"/>
<Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource Self}, Path=DataContext.DataItem.Test, Converter={StaticResource booleanToVisibilityConverter}}"/>


</Style>


</igWPF:XamDataGrid.Resources>

However, the record is hidden but a blank placeholder is still there even though the converter returns a "Hidden" or "Collapsed" value. Is there a way to hide records with another property?