本文介绍了如何根据条件在网格视图单元格中显示红色或蓝色或绿色的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生iam使用asp.net3.5与c#与sql server 2005

我有表Employee包含字段



empno int primarykey

empname nvarchar(50)

salaty money

status nvarchar(50)(即活动,非活动,进程,选中)



基于状态列我必须为active -green颜色显示值,不是active -red颜色,process -blue颜色等我必须为所有显示gridview中的员工详细信息,你能给出一些帮助我的例子吗

解决方案




sir iam using asp.net3.5 with c# with sql server 2005
iam having table Employee which contains fields

empno int primarykey
empname nvarchar(50)
salaty money
status nvarchar(50)(ie active,not active,process,selected)

based on the status column I have to dispay the value for active -green color,not active -red color, process -blue color and so on i have to display for all employee details in the gridview , can you give example which helps me

解决方案




这篇关于如何根据条件在网格视图单元格中显示红色或蓝色或绿色的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 05:56