How can I scroll the grid programatically in WPF? Mark Devid247523-Jan-2014How can I scroll the grid programatically in WPF?c#c# Updated on 23-Jan-2014
Pravesh Singh
23-Jan-2014Will DataGrid.ScrollIntoView work for you? The first parameter(item) is the element you want to show.
//
// Summary:
// Scrolls the System.Windows.Controls.DataGrid vertically and horizontally
// to display a cell for the specified data item and column.
//
// Parameters:
// item:
// The data item to bring into view.
// column:
// The column to bring into view.
public void ScrollIntoView(object item, DataGridColumn column);