简体   繁体   English

如何为WPF自定义devexpress GRID.CONTROL的筛选器编辑器?

[英]How to customize the filter editor of a devexpress GRID.CONTROL for WPF?

We are using a Dx GridControl for WPF, and we want to customize the filter editor popup dropdown list in order to add additional columns to the list , like shown in the attached image. 我们正在为WPF使用Dx GridControl,并且想要自定义过滤器编辑器弹出式下拉列表,以便向列表中添加其他列,如附图所示。 this will help us to create filters with fields not shown in the GridControl. 这将帮助我们使用GridControl中未显示的字段创建过滤器。

Any suggestion will be helpful. 任何建议都会有所帮助。 Thanks. 谢谢。

Medi MEDI

https://www.devexpress.com/Support/Center/Attachment/GetAttachment?fileOid=2c9cfd9a-aaa4-11e3-80be-00155d624701&fileName=FilterEditorsDropDownListFields.png https://www.devexpress.com/Support/Center/Attachment/GetAttachment?fileOid=2c9cfd9a-aaa4-11e3-80be-00155d624701&fileName=FilterEditorsDropDownListFields.png

To customize the Fitler Editor before it is displayed, handle the DataViewBase.FilterEditorCreated event. 要在显示Fitler编辑器之前对其进行自定义,请处理DataViewBase.FilterEditorCreated事件。 You can find more information in this article . 您可以在本文中找到更多信息。

Update 更新

To add new columns you can user FilterColumns property, but for that you should use unbound mode (without SourceControl). 要添加新列,您可以使用FilterColumns属性,但为此您应使用未绑定模式(不使用SourceControl)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM