【问题标题】:How to add a row with text box in WPF DataGrid to be used as search box如何在 WPF DataGrid 中添加带有文本框的行以用作搜索框 【发布时间】:2021-07-21 07:21:16 【问题描述】: 我希望 WPF DataGrid 的第一行是文本框,以便它可以充当搜索框。类似于以下内容: 【问题讨论】: 到目前为止你尝试了什么? stackoverflow.com/questions/15358113/wpf-filter-a-listbox 看起来我必须创建一个自定义 DataGrid。 kailashsblogs.com/2020/06/wpf-custom-datagrid-in-c.html 标签: wpf datagrid 【解决方案1】: 我能够使用链接实现: http://wpf-tutorial-net.blogspot.com/2013/11/filter-datagrid-wpf-c-example.html 【讨论】: