数据网格行的条件文本格式 [英] Conditional text formatting for datagrid row

查看:77
本文介绍了数据网格行的条件文本格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据日期中的条件对文本进行颜色编码。 迟到的项目是红色或粗体等。 看起来像一个非常常见的用例,但找不到一个例子。

How would I go about color coding text based on conditions in the date.  Late items are red, or bold etc.  Seems like a very common use case but can't find an example.

推荐答案

嗨大卫,

我同意这是一个非常普遍的要求,&这已经在本论坛中讨论了几次,但不幸的是,在V1中没有任何内置功能可以让你做到这一点。我们希望这会在V2 +中得到改善

I agree that this is a very common requirement, & this is something that has been discussed in this forum a few times now, but unfortunately there is nothing built-in, in V1, to enable you to do it. We're hoping this will improve in V2+

如果您精通SliverLight控件,可以通过编程方式达到该级别,或者您可以创建自定义SilverLight控件&用它代替。我不知道有什么偏离我的头脑,但可能会有第三方控制
,但也允许你这样做。

If you're proficient with SliverLight controls, there are programmatic ways of getting down to that level, or you could create a custom SilverLight control & use that instead. I don't know of any off the top of my head, but there may be a 3rd party control that will allow you to do this as well.

所以你不能"找到"的原因任何方式,是*产品中没有* *,即使这是一个非常合理的假设。

So the reason you couldn't "find" any way to do it, is that there *isn't* one built into the product, even though it's a very reasonable assumption that there would be.


这篇关于数据网格行的条件文本格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆