1

i need to add a textbox to each column's header of a DataGrid and filter that column using this textbox? i used this post to add textbox to column header but i don't know how to bind them to Viewmodel? Datagrid custom header

Community
  • 1
  • 1
mahboub_mo
  • 2,908
  • 6
  • 32
  • 72

1 Answers1

0

You can create custom class, which will represent your filterable headers, then you can put additional collection of filterable headers into your view model, so you will expose two collections - one for actual data and one for headers binding and then bind it. Also you can check this : WPF Datagrid binding custom column headers

Community
  • 1
  • 1
Jevgenij Nekrasov
  • 2,690
  • 3
  • 30
  • 51