以下是单元格变色,我想让全行都变色,那下面的this该改为什么呢(tc是单元格TabelCell,tr是行TabelRow)
tc.Attributes .Add ("onmouseover","curentcolor=this.style.backgroundColor;this.style.backgroundColor='#6699ff'");
tc.Attributes .Add ("onmouseout","this.style.backgroundColor=curentcolor");
tc.Attributes .Add ("onmouseover","curentcolor=this.style.backgroundColor;this.style.backgroundColor='#6699ff'");
tc.Attributes .Add ("onmouseout","this.style.backgroundColor=curentcolor");
{
e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=''");
e.Item.Attributes.Add("onmouseover","this.style.backgroundColor='#BFDFFF'");
}