BeginEdit of a specific Cell from code behind
问题 Is possibile begin edit of a specific cell from code behind with DataGrid control (WPF Toolkit)? I have to enable the celledittemplate of first cell of selected row after a button action...how can I do? 回答1: pls, try putting the code below in your button's on click event handler: DataGridCell cell = GetCell(1, 0); if (cell != null) { cell.Focus(); yourDataGrid.BeginEdit(); } below is implementation for the GetCell method taken from here Grabing controls from a DataGrid public DataGridCell