dotnet / DataGridExtensions

Modular extensions for the WPF DataGrid control
MIT License
822 stars 105 forks source link

Set Visibility to Filter Columns #55

Closed mdomas1 closed 3 years ago

mdomas1 commented 3 years ago

Hello All,

I want to have the visibility of the Filter off on the first two rows of my datagrid, what would be the proper code to accomplish this?

I've tried: dataGrid1.ItemsSource = new ListCollectionView(datat.DefaultView); dataGrid1.Columns[0].SetIsFilterVisible = False; dataGrid1.Columns[1].SetIsFilterVisible = False; And dataGrid1.Columns[0].IsFilterVisible = False; And dataGrid1.Columns[0].SetIsFilterVisible = IsFilterVisible.False;

Plz help