改变行颜色在紧凑型框架的DataGrid [英] Changing row colors in the Compact Framework DataGrid
本文介绍了改变行颜色在紧凑型框架的DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何能在Windows CE紧凑型框架应用程序中的DataGrid控件使用非默认的颜色?
How can I use non-default coloring in the DataGrid control in a Windows CE compact framework application?
我要颜色彩色X中的一行和颜色Y(交替行颜色基本上)一行。
I need to color one row in color X and one row in color Y (alternating row colors basically).
推荐答案
您需要手动进行自定义绘制。伊利亚在CF团队做的一个简单的例子是在团队博客在这里。
You'll have to manually do custom drawing. Ilya on the CF team has a straightforward example of doing it on the team blog here.
这篇关于改变行颜色在紧凑型框架的DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文