C#datagrid,而不是datagridview。我如何为特定细胞着色? [英] C# datagrid, not datagridview. How I color a specific cell?

查看:79
本文介绍了C#datagrid,而不是datagridview。我如何为特定细胞着色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要根据内部的内容为数据网格中的特定单元着色。



代码的任何帮助?



我尝试过:



dataGrid help

我需要根据内部写入的内容为数据网格中的特定单元着色。 

代码的任何帮助?

解决方案

使用DataGridCell类(System.Windows.Controls) [ ^

I need to color a specific cell in a datagrid depending on what is writed inside.

Any help with the code?

What I have tried:

dataGrid help

I need to color a specific cell in a datagrid depending on what is writed inside.

Any help with the code?

解决方案

Use the Background property of DataGridCell Class (System.Windows.Controls)[^]


这篇关于C#datagrid,而不是datagridview。我如何为特定细胞着色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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