Currenly I have requirement to Hide my data grid control when there is no records are populated in it.
I tried setting it like below but it didn't work.
<DataGrid ItemsSource="{Binding Employees}" AutoGenerateColumns="True" IsReadOnly="True" Visibility="{Binding Employees.Count>0, Converter={StaticResource BooleanToVisibilityConverter}}"></DataGrid>
Please suggest me a solution for this
Aucun commentaire:
Enregistrer un commentaire