如何设置GridView单元格的背景色..? [英] how to set gridview cell background color..?
本文介绍了如何设置GridView单元格的背景色..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用包含n行和n列的gridview.
我正在行和列中显示数据.
我想根据自己的状况以不同的颜色显示特定的单元格.
例如,
A = 10(网格列3)
B = 15(网格第4列)
当我们比较两个值时,最大值单元格应以不同的颜色突出显示.
I am using gridview which contains n rows and n columns.
I am displaying the data in the rows and columns.
I want to display particular cell in different color based on my condition.
For example,
A = 10 (Grid column3)
B = 15 (Grid column4)
When we compare the two values, then Maximum value cell should be highlighted in different color.
How to do this...?
推荐答案
检查此链接
http://www.sharepointjohn.com/asp-net-c-change-gridview-cell-background-color-based-on-value/ [
Check this link
http://www.sharepointjohn.com/asp-net-c-change-gridview-cell-background-color-based-on-value/[^]
请参考链接.
请参阅我的文章.
在ASP.NET中合并的GridView列标题 [ ^ ]
Refer my article.
GridView column header merging in ASP.NET[^]
这篇关于如何设置GridView单元格的背景色..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文