关于Datagridview单元的BackColor [英] Regarding Datagridview Cell BackColor

查看:65
本文介绍了关于Datagridview单元的BackColor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在C#Form应用程序中使用datagridview控件.

我想更改单元格的背面颜色.
底色应达到单元格中文本的长度.
同一单元格的其余部分应保持不变.

我该如何编码才能获得上述结果.

谢谢
Lakshman

I am Using datagridview Control in a C# Form Application.

I want to change the back color of cells.
Back color should be till the length of the text in cell.
Remaining Part of the same cell should remain Unchanged.

How Can i code to get the above result.

Thank you
Lakshman

推荐答案

您需要突出显示的内容不是真正的背景色.
请参阅 [
What you need is highlighting, not really the background color.
See this[^] thread.


这篇关于关于Datagridview单元的BackColor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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