Solved

Highlighting gridview row on mouseover - highlighting specific sections of the selected row

Posted on 2013-06-06
2
328 Views
Last Modified: 2013-06-09
There are a number of articles on highlighting gridview rows, but how do I split the highlight function down the middle of the gridview to create a split highlight function ?

ie:- (a) the left hand fields in the selected row are only highlighted when there is a mouseover on any one of the left hand cells and (b) the right hand fields are only highlighted (in a different color to the lefthand highlights) when there is a mouseover on any one of the right hand cells.

Eg : A gridview returns six fields with results in three rows as follows:-

A1 B1 C1 D1 E1 F1
A2 B2 C2 D2 E2 F2
A3 B3 C3 D3 E3 F3


On mouseover on B2: A2,B2,C2 are all highlighted - ie the left hand side of row 2
On mouseover on F3: D3,E3, F3 are all highlighted - ie the right hand side of row 2
etc etc...

For reference there will always be an even number of fields in the gridview so the lefthand side and righthand side will always have an equal number of fields.
0
Comment
Question by:doolinn
2 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 39228105
Here is your solution:

http://jsfiddle.net/qbyvN/

:-)
0
 

Author Comment

by:doolinn
ID: 39230761
Thanks - all works well.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question