WPF中DataGrid自动滚动到最后一个数据 //将表格滚动至最后一行 var border= VisualTreeHelper.GetChild(gdTempData, 0) as Decorator; if (border != null) { var scroll = border.Child as ScrollViewer; if (scroll != null) scroll.ScrollToEnd(); } 注:代码中gdTempData为前端代码中DataGrid列表命名