//打表ID为GridView1除第一行外 each表示循遍历 找到第18个单元格的text()如果为1那么
就给它的当前行的背景颜色为红色
jQuery(function () {
$('#GridView1').find('tr:gt(0)').each(
function () {
var a = $(this).find('td:eq(18)').text();
if (a == "1") {
$(this).css("background-color", "red");
}
});
});