1
我有一个DataGrid与许多项目(行),我需要编程滚动到底部。 我已经在stackoverflow和谷歌搜索,似乎解决方案是ScrollIntoView,但我不知道如何得到它的工作。我想:如何在DataGrid中使用ScrollIntoView?
dataGrid1.ScrollIntoView(dataGrid1.Items.Count());
dataGrid1.ScrollIntoView(100);
文档说的ScrollIntoView内支架是一个项目的对象。我怎样才能得到最后一行作为一个对象? (例如dataGrid.Items.LastRow() ??)
@FS,谢谢。有效。为什么不能MSDN更解释。 – KMC 2011-05-04 11:27:37