在asp.net 3.5中更改datagrid返回颜色 [英] change datagrid back color in asp.net 3.5

查看:73
本文介绍了在asp.net 3.5中更改datagrid返回颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp: datagrid包含loat of template column.i想要根据colum值改变网格行/单元格中的背面颜色让我们说类型.datagrid使用代码绑定。

i have an asp: datagrid which contain loat of template column.i want to change the back grond color in the grid row/cells based on the colum value lets say "Type" .datagrid is binded using code .

推荐答案

在CodeProject中有一篇关于此内容的文章(以及Google中大约25万次点击)

更改ASP.NET中GridView中行的颜色 [ ^ ]




仅约200k点击谷歌

http://stackoverflow.com / questions / 11135353 / datagrid-row-color-change-based-on-data [ ^ ]




你可以使用jQuery来改变tr元素的背景颜色,或者你可以修改这个代码jQuery选择器。



Hi,
You can use jQuery to change background color of tr elements or you can modify this code jQuery selectors.


(document).ready(function(){
(document).ready(function () {


这篇关于在asp.net 3.5中更改datagrid返回颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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