悠索

少小离家老大回,乡音无改鬓毛衰。

« VB.Net防止SQL注入并记录注入语句vb.net导出Excel文件的方法 »

DataGird行的鼠标放上变色

 Public Function DataRowColorChange(ByRef e As System.Web.UI.WebControls.DataGridItemEventArgs)
        If e.Item.ItemIndex < 0 Then
        Else
            If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
                e.Item.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#EEEEEE'")
                e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor")
            End If
        End If
    End Function

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Copyright (C) 2008-2010 0451sky.com Inc.,All Rights Reserved.