单击行变色
单击行变色
function GridRowOnClick(gridId,gridRow,pkValue,rowIndex)
{
if(window.prevRow != null)
{
window.prevRow.style.backgroundColor = window.prevColor;
window.prevRow.style.color = window.prevForeColor;
}
window.prevRow = gridRow;
window.prevColor = gridRow.style.backgroundColor;
window.prevForeColor = gridRow.style.color;
gridRow.style.backgroundColor = "#3B5998";
gridRow.style.color="#D7DFEA";
}