如何更改 UltraWinGrid 中过滤器的单元格外观
我正在使用 UltraWinGrid 控件,并且我想自定义其过滤。
我能够从 ValueList 属性获取所有值。
private void dgridData_BeforeRowFilterDropDown(object sender, BeforeRowFilterDropDownEventArgs e)
{
// Get each item from the list
foreach (ValueListItem item in e.ValueList.ValueListItems)
{
// Do Something
}
}
我想在下拉列表中显示值(参见图片),如下所示:-(
全部)
(定制)
(空白)
(非空白)
*********
*********
*********
(NonBlanks) 之后的值应显示为星号 。
我能想到的选项之一是附加蒙版编辑器到当前编辑器,以更改显示。但我不知道如何在这种情况下附加编辑器控件。
分享我正在经历的一些链接:-
- 过滤 Ultragrid 中的行
- <一href="http://blog.trivadis.com/blogs/nicolasmueggler/archive/2008/01/30/removing-default-entries-from-infragistics-ultrawingrid-rowfilterdropdown.aspx" rel="nofollow noreferrer">删除默认值来自 Infragistics UltraWinGrid RowFilterDropDown 的条目
欢迎您告诉我其他选项达到同样的效果。
I am using UltraWinGrid control and I want to customize its filtering.
I am able to get all the values from the ValueList property .
private void dgridData_BeforeRowFilterDropDown(object sender, BeforeRowFilterDropDownEventArgs e)
{
// Get each item from the list
foreach (ValueListItem item in e.ValueList.ValueListItems)
{
// Do Something
}
}
I want to show the values in the dropdown ( see picture ) as follows :-
(All)
(Custom)
(Blanks)
(NonBlanks)
*********
*********
*********
The values after (NonBlanks) should appear as asterisks .
One of the option I can think is to attach a masked editor to the current editor , to change the display. But I dont know how to attach an editor control in this scenario.
Sharing some links on I was going through :-
- Filtering Rows in Ultragrid
- Removing default entries from Infragistics UltraWinGrid RowFilterDropDown
You are welcom to let me know of other options to acheive the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我现在不在装有 Infragistics 的电脑前。但是您不能循环遍历这些项目并更改 DisplayText 吗?
我只是从头顶输入代码,请原谅任何错误。
I'm not in front of my pc with Infragistics on it right now. But Couldn't you just loop through the items and change the DisplayText?
I'm just typing the code from the top of my head, pardon any errors.
将列表更改为星号字符串后,过滤应该做什么?您是否希望提供基于项目长度的过滤器?
What should the filtering do after you have changed the list to be strings of asterisk characters? Are you looking to provide a filter based on the length of the items?