datagrid
DataGrid鼠标随行变色
在ItemDataBound中添加以下代码:

1 if(e.Item.ItemType!=ListItemType.Header) 2 { 3 e.Item.Attributes.Add("onmouseover","this.style.backgroundColor='#CFF3F7'; "); 4 e.Item.Attributes.Add("onmouseout","this.style.backgroundColor='"+ e.Item.Style["background-color"] +"';"); 5 }