views:

12

answers:

1

How can I make the data grid not allow the user to select multiple rows?

+1  A: 

Use SelectionMode attribute:

<DataGrid x:Name="dgName" SelectionMode="Single">
</DataGrid>
kzen
Well don't I feel stupid. I saw that too, and for some reason just assumed that Single was the default.
Jonathan Allen
Don't worry, it happens to me all the time... :)
kzen