WPF DataGrid selected row stays highlighted even when user clicks another control
Is it possible to turn off the selected row highlighting when a user clicks another control in the window?
Tha开发者_StackOverflow社区nks in advance.
You could set the SelectedIndex
to -1
in the LostFocus
event, thus losing the selected item and removing the highlight.
精彩评论