You need to sign in to do that
Don't have an account?

How can I set color of row, when the mouse over of row?
Hi All,
I am crating the Visualforce page. I use the <dataTable> tag for displaying data, but it does not have any highlight on the selected row same as using <pageBlockTable> tag.
Could anyone give me the suggestion, how I can control it? I am very new in visualforce and web coding.
<apex:page controller="MyClass">
<apex:datatable value="{!myList}" var="v">
<apex:column value="{!v}" onmousemove="this.style.backgroundColor='green'" onmouseout="this.style.backgroundColor =''"/>
</apex:datatable>
</apex:page>
All Answers
<apex:page controller="MyClass">
<apex:datatable value="{!myList}" var="v">
<apex:column value="{!v}" onmousemove="this.style.backgroundColor='green'" onmouseout="this.style.backgroundColor =''"/>
</apex:datatable>
</apex:page>
Hello Prageeth,
Thanks you for your help. I have tried it and it work.
Prapp.
I know this is an old post but I wanted to update this for anyone else that is looking.
The code given seems to only highlight the cell in question and not the row.
I think this is what you need to highlight the row: