PC Review


Reply
Thread Tools Rate Thread

Can onmouseover change row borders?

 
 
Arch
Guest
Posts: n/a
 
      1st Dec 2009
I have a datagrid with alternating bg colors, and I added an onmouseover
event to shade them yet another color. Here's the way Google taught me
to do it:

If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='#DFCBFF'")
End If

If e.Item.ItemType = ListItemType.Item Then
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='White'")
Elseif e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#CFD1FB'")
End If

But the effect is too busy, and I'd like to experiment with other
effects - specifically, I'd like to leave the bg color the same and show
the top and bottom borders of the rolled-over row. Is there a way to use
code similar to mine to change other attributes of a row when the mouse
goes over it? Or any way?

Thanks for any help.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can onmouseover change row borders? Arch Microsoft ASP .NET 3 2nd Dec 2009 03:28 AM
DataList Change Row Color OnMouseOver rn5a@rediffmail.com Microsoft ASP .NET 3 20th Nov 2006 09:08 AM
Change class with onmouseover =?Utf-8?B?VmVhcg==?= Microsoft ASP .NET 3 7th May 2006 07:02 PM
OnMouseOver & OnMouseOut event on tablerow to change backcolor of row The Coolest Dolphin Microsoft C# .NET 0 8th Aug 2005 10:14 AM
How to change onmouseover and onmouseout dynamically Tor Inge Rislaa Microsoft ASP .NET 3 6th Aug 2003 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:04 PM.