Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I select multiple rows in a datagrid on mouse click without using a control key or check boxes?
Posted
Comments
Sandeep Mewara 7-Jan-11 1:47am    
You reposted the question! :doh:

1 solution

First you need to use SelectionMode="Extended" on the datagrid.

Then I suppose on the mouse click event, you could get the row that was clicked on, and set the row to selected via code.

To get the current row, see here[^].
 
Share this answer
 
v2
Comments
[no name] 26-Sep-16 3:44am    
use this link http://www.codeproject.com/Tips/1133638/Carry-SelectedItems-of-DataGrid-from-View-to-ViewM

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