private void DataGrid_CurrentCellChanged(object sender, EventArgs e) { DataGrid.BeginEdit(); } private void DataGrid_PreparingCellForEdit(object sender, DataGridPreparingCellForEditEventArgs e) { UIElement inputElement; inputElement = DataGridHelper.GetVisualChild<TextBox>(e.EditingElement); if (inputElement != null) { Keyboard.Focus(inputElement); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)