Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用超过 wpf 网格(版本 3.6.10159.15470),我需要禁用列的自动过滤器或挂钩关闭(或关闭)事件。我搜索了 API,但无法找到如何完成这些任务。你能帮助我吗?
在 XAML 中,可以将 Column 上的 AllowAutoFilter 属性设置为 false 以禁用该列的 AutoFilter。如果你想在代码中设置它,你可以这样做:
this.MyDataGridControl.Columns["Column1"].AllowAutoFilter = false;
我希望这有帮助!