You may handle the AddingNewDataItem and RowEditEnded events like follows:
void playersGrid_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
e.NewObject = new Player();
this.playersGrid.KeyboardCommandProvider = new CustomKeyboardCommandProvider(this.playersGrid);
void playersGrid_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
this.playersGrid.KeyboardCommandProvider = new DefaultKeyboardCommandProvider(this.playersGrid);
The CustomKeyboardCommandProvider may be defined as below:
public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider
private GridViewDataControl parentGrid;
public CustomKeyboardCommandProvider(GridViewDataControl grid)
this.parentGrid = grid;
public override IEnumerable<
> ProvideCommandsForKey(Key key)
> commandsToExecute = base.ProvideCommandsForKey(key).ToList();
if (key == Key.Enter)
Let me know whether this corresponds to your requirements.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items