Multiple selection datagrid before click on datagrid
Posted
by
Jakub Cermoch
on Stack Overflow
See other posts from Stack Overflow
or by Jakub Cermoch
Published on 2012-06-11T16:37:18Z
Indexed on
2012/06/11
16:39 UTC
Read the original article
Hit count: 731
I have wpf datagrid with multiple selection (model has properties IsSelected...) and it works fine, but when I start program, I have to click on the table first and after that work multiple selection. When I first click on the table it select item under cursor (if i have pressed shift, it select the item too, not do multiple selection).
I supposed it can be because of datagrid hasnt focus, but when I do datagrid.Focus() on loaded window, it doesnt helped.
Thanks a lot
© Stack Overflow or respective owner