怎么样修改 WinForm 中 DataGrid 中某一行或几行的背景颜色?可以吗?

kb1024 2003-10-09 11:31:11
怎么样修改 WinForm 中 DataGrid 中某一行或几行的背景颜色?可以吗?
...全文
47 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zyhtz 2003-10-10
  • 打赏
  • 举报
回复
最好重载DataGirdTextBoxColumn
里面的paint函数里指定各列的颜色
saucer 2003-10-09
  • 打赏
  • 举报
回复
see

5.10 How do I color a individual cell depending upon its value or some external method?
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q745q

Changing the background color of cells in a DataGrid
http://www.codeproject.com/csharp/custom_datagridcolumnstyl.asp

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧