How do I add one attached property?

tellblom

Member
Joined
Jul 3, 2022
Messages
16
Programming Experience
10+
Hi all
In the middle of a C# windows form project and need to add DataGridExtensions ( GitHub - dotnet/DataGridExtensions: Modular extensions for the WPF DataGrid control ) to my datagrid.
I have installed the extension.
To enable filtering in the DataGrid you should only, and I quote:
Filtering is enabled by simply adding one attached property to your DataGrid:

<DataGrid ItemsSource="{Binding Items}"
dgx:DataGridFilter.IsAutoFilterEnabled="True"/>
How and where do I add this?

I have tried to google this and I get Use BDC Explorer (that should be under View-Other Windows, but it's not)
I also found "How to register an attached property (WPF .NET)" in MS Docs but that shows a different way to to maybe the same thing.

So anyone can help me where I should put the above code?
 

Latest posts

Back
Top Bottom