为选定的数据更改gridview中的行的颜色 [英] change colors of rows in gridview for selected data

查看:74
本文介绍了为选定的数据更改gridview中的行的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是.net的新手.
我想知道如何更改选定数据的gridview中行的颜色..
请帮我...

例如,如果我有一个网格视图,其数据类似于雇员表,并且我想更改名称以"s"开头的人员的薪水颜色...

Hi,
i m new to .net.
i want to know how to change colors of rows in gridview for selected data..
please help me...

for example if i have a gridview having data like table of employees and i want change the color of salary of those whose name is started with "s"...

推荐答案

我刚刚在Google中找到了这个

如何设置更改GridView所选行的字体,文本在ASP.NET中以编程方式设置样式 [ ^ ]
I just found this in Google

How to set change GridView selected row font, text style programmatically in asp.net[^]


http://dotnetspeaks.com/DisplayArticle.aspx?ID=76 [ ^ ]
http://forums.asp.net/t/1081478.aspx [ http://syntaxhelp.com/ASP.NET/gridview/change-cell-row-文本颜色 [^ ]
http://forums.silverlight.net/forums/p/29933/96715.aspx [ ^ ]
http://dotnetspeaks.com/DisplayArticle.aspx?ID=76[^]
How To: Change the row Background color based on the database value using GridView Control
http://forums.asp.net/t/1081478.aspx[^]
http://syntaxhelp.com/ASP.NET/gridview/change-cell-row-text-color[^]
http://forums.silverlight.net/forums/p/29933/96715.aspx[^]


http://aspdotnetfaq.com/Faq/如何正确地突出显示GridView-鼠标悬停在ASP-NET.aspx中的行数 [ ^ ]

也许会对您有帮助.
http://aspdotnetfaq.com/Faq/How-to-correctly-highlight-GridView-rows-on-Mouse-Hover-in-ASP-NET.aspx[^]

May be it will help you.


这篇关于为选定的数据更改gridview中的行的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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