Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Gridview行悬停未更改_C#_Gridview - Fatal编程技术网

C# 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'")

已尝试在网格视图行数据绑定事件中使用以下代码,但仍无法使用。任何人都可以暗示我做错了什么

Gridview行背景颜色未更改

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等尝试过的所有解决方案都可能重复,但仍然没有任何用处。我需要检查的区域可能存在什么问题?