Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
WPF DataGrid while adding new row focus is always setting to last position of cell.
How would I can set to the first cell's focus while adding new row?

1.I have simple 6 columns so when I press enter on last column it should add new row (working fine)
2.Focus should be the added row's first cell it won't happen it is always in the last cell

I am attaching my WPF Sample demo as well please correct me where I am wrong? Demo Link: WPFDemo

https://github.com/jitendrajadav/WPFDEMO

Thank you,
Jitendra Jadav.

What I have tried:

I have tried with 3 days of google and MSDN but couldn't find any solution for it.
Posted
Updated 24-Apr-18 0:21am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900