Click here to Skip to main content
15,867,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, how can I auto-select a row when mouse goes over it in datagrid control ?
Thanks :-)
Posted

1 solution

Use MouseEnter Event.
Maybe trigger can help you also... I don't now how your application looks like...

<pre lang="xml"><Style TargetType="{x:Type DataGridRow}">
       <Style.Triggers>
           <Trigger Property="IsMouseOver" Value="True">
               <Setter Property="IsSelected" Value="True" />
           </Trigger>
       </Style.Triggers>
   </Style>
 
Share this answer
 
v2
Comments
Gianluca Palmieri 11-Apr-13 3:11am    
Thank you for your answer!!!! You solved my problem!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900