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?
This can be done using RowStyle . Something like that:
RowStyle
<DataGrid> <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="Visibility" Value="{Binding Visibility}" /> </Style> </DataGrid.RowStyle> </DataGrid>