How can i remove focus from a DataGrid to next control when i hit Enter on the last row of it, which is null.
I am using WPF MVVM
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
set this event as key up of your datagrid . use this refrence too using System.Windows.Controls.Primitives . put datagrid and some other control to your window .
when you get to last row it will change focuse to next control. i will occur when you rich last row because of this if (row.GetIndex() == dataGrid1.Items.Count – 1)
i use datagrid with fullrowselect as selection mode.if you want use datagrid with cell selection mode leave comment for me please.