I have a problem with datagrid control in wpf . when I press enter I want to load selected items in a set of controls, but it seems that datagrid.KeyDown is already handled and it goes to the next item.
I tried using keyup but this event fires when the datagrid keydown had been fired and datagrid goes to the next item.
any idea to handle keydown completely ?
Use the PreviewKeyDown
event instead of KeyDown
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With