开发者

WPF DataGrid selected row stays highlighted even when user clicks another control

开发者 https://www.devze.com 2023-01-29 12:23 出处:网络
Is it possible to turn off the selected row highlighting when a user clicks another control in the window?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消