145
How do I set keyboard focus to the Add Row after adding a row
posted

I have a XamDataGrid (version 2011.2), when a user has tabbed off of the "Add New" row I need the focus to return to the first cell of the Add New row so they can enter another record, the default behaviour keeps the focus on the record that has just been added.

I have tried to use DataPresenterCommands to move the focus or to find a way to set myGrid.Records.DataPresenter.ActiveCell but haven't had any success.

Does anyone have any ideas?