如何更改 Infragistics 的背景颜色? UltraGrid 过滤器行?
目前看起来是这样的:
我想更改蓝色,但我不'不知道要改变什么属性。
我尝试将我认为的属性更改为洋红色或其他突出的属性,试图找出我需要什么财产,但到目前为止还没有骰子。
有什么想法吗?
Currently this is what it looks like:
I'd like to change that blue color, but I don't know what property to change.
I've tried changing what I think is the property to magenta or something that stands out in an attempt to find out what property I need, but so far no dice.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为此,请使用“ultraGrid.DisplayLayout.Override.FilterCellAppearance”。
Use "ultraGrid.DisplayLayout.Override.FilterCellAppearance" for that.
我想你可能正在寻找这样的东西。在此示例中,我使选定的行颜色“消失”,但您可以将它们设置为您想要的任何颜色。
I think you may be looking for something like this. In this example I'm making the selected row colors "disappear", but you can set them to any color you want.
调整外观的最佳方法是在 UltraGrid 控件的 InitializeLayout 事件中进行,而不是调整 Designer 文件。您可以在设计时双击 UltraGrid 以挂接到上述事件。之后,您可以对下面的单行进行注释和取消注释,以了解在为控件应用所需的过滤器后,最终的效果是什么:
The best way to tweak the appearances would be in the InitializeLayout event of your UltraGrid control, and not tweak the Designer files. You could double click on your UltraGrid, while in Design time, to hook to that mentioned event. Afterwards you could comment and uncomment the single lines below to get the idea what would be the end effect for you, after you apply the needed filters for your control: