C# Gridview行悬停未更改
已尝试在网格视图行数据绑定事件中使用以下代码,但仍无法使用。任何人都可以暗示我做错了什么 Gridview行背景颜色未更改C# Gridview行悬停未更改,c#,gridview,C#,Gridview,已尝试在网格视图行数据绑定事件中使用以下代码,但仍无法使用。任何人都可以暗示我做错了什么 Gridview行背景颜色未更改 e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor = 'red'; this.style.textDecoration = 'underline'"); e.Row.Attributes.Add("onmouseout", "this.style.textDecoration = 'none'")
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor = 'red'; this.style.textDecoration = 'underline'");
e.Row.Attributes.Add("onmouseout", "this.style.textDecoration = 'none'");
使用css、javascript、jquery等尝试过的所有解决方案都可能重复,但仍然没有任何用处。我需要检查的区域可能存在什么问题?