Wpf DataGrid hides full row through DataBinding

Is it possible to hide DataGrid rows through a DataBinding:
If I have BO or ViewModel elements that have a visibilty property, is it possible to declare a binding so that the string is hidden if the property is set to invisible and vice versa?

+7
source share
1 answer

This can be done using RowStyle . Something like that:

 <DataGrid> <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="Visibility" Value="{Binding Visibility}" /> </Style> </DataGrid.RowStyle> </DataGrid> 
+15
source

All Articles