你得让里面行获得焦点比如第一行:var row = dataGrid.ItemsContainerGenerator.ContainerFromIndex(0) as FrameworkElement;if(row != null) row.Focus();