询问者
wpftoolkit中的datagrid如何设置一行颜色?

问题
全部回复
-
用DataTrigger,详情可以参考:
http://msdn.microsoft.com/zh-cn/library/system.windows.datatrigger.aspx
这里有一个sample你可以参考:
http://asimsajjad.blogspot.com/2010/10/changing-background-color-of-datagrid.html
这篇文章里面提到了2中方法,一个是Trigger, 另一个是通过代码改变。
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
-
这个链接是好用的啊, 你再试试
http://asimsajjad.blogspot.com/2010/10/changing-background-color-of-datagrid.html
如果不行告诉我
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.