请问如何实现在鼠标移动的时候,鼠标指定的datagrid行变色?
解决方案 »
- AJAX 数据部分丢失问题
- 为什么我写的div显示在 加载的datagridview 上.他们两个重复了。
- 继承panel问题
- 排考场
- 在线求regularexpressionvalida只能输入汉字的正则表达式!!!!!!!!!!!!!!!
- 疯掉!居然转不过去!arraylist与array怎么转换?
- dhtmlXVault 上传文件生,自动命名问题
- 请教,关于显示的图片名字动态确定的问题 ???
- 我用push model做了一个crystal report,但是报表无内容,help!
- 数据库里是bit类型的字段在c#里如何判断它是false or ture??在线等待
- 怪事,用Request.QueryString取值明明过来三个字,却只取到两个,怎么回事呀!
- 初学,请高手帮忙看如下代码有什么问题,不能正常运行。
if(e.Item.ItemIndex!=-1) {
e.Item.Attributes.Add("onmouseover","this.setAttribute('BKC',this.style.backgroundColor);this.style.cursor='hand',this.style.backgroundColor='#dddddd'");
e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=this.getAttribute('BKC');");
}
}
{
e.Item.Attributes.Add("onmouseover","this.style.backgroundColor='#738A9C';this.style.cursor='hand'");
}
if(e.Item.ItemType==ListItemType.AlternatingItem)
{
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#F7F7F7'");
}
else if(e.Item.ItemType==ListItemType.Item)
{e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#E7E7FF'"); };
{
ListItemType itemType = e.Item.ItemType;
e.Item.Attributes["onmouseover"] = "javascript:this.style.backgroundColor='#fff7ce';cursor='hand';" ;
if (itemType == ListItemType.Item )
{
e.Item.Attributes["onmouseout"] = "javascript:this.style.backgroundColor='#dedfde';";
}
else if( itemType == ListItemType.AlternatingItem)
{
e.Item.Attributes["onmouseout"] = "javascript:this.style.backgroundColor='#ffffff';";
}
<asp:datagrid id="dataGrid1" Width="100%" OnItemDataBound="dataGrid1_ItemDataBound()" Runat="server" AllowSorting="True" AllowPaging="True"
AutoGenerateColumns="False" ShowHeader="False" CssClass="tr1">这是系统的出错信息:ASP.SelProjectInfo_aspx”并不包含对“dataGrid1_ItemDataBound”的定义