Programmatic Scrolling
The DataGrid exposes methods for programmatic scrolling for a specific column, a specific row index, or a specific data item.
The following properties are supported:
-
ScrollColumnIntoView
(DataGridColumn
column)—Attempts to asynchronously bring the specifiedDataGridColumn
into view. -
ScrollIndexIntoView
(int index)—Attempts to asynchronously bring the data item at the specified zero-based index into view. -
ScrollItemIntoView
(object item)—Attempts to asynchronously bring the specified data item into view.
The following examples demonstrate how to use these methods in practice.