Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
875
After enter, active record to AddNewRecord special row in edit mode
posted

Hey, I'll ask again.  How can i set the AddNewRecord special row's first cell to be automatically selected and in edit mode after I add a record (by pressing enter key)?  I have AllowAddNew="true" and AddNewRecordLocation="OnBottomFixed".  Surely someone knows how to do this.  I just want the first cell in that special row (with the +) to be ready for user to type in for adding records quickly.

 

private void dp_PreviewKeyDown(object sender, KeyEventArgs e)

{

if (e.Key == Key.Enter)

XamDataPresenter dp = sender as XamDataPresenter;

if (dp != null)

{

set active record/cell to the add row and enter edit mode here how?

}

}