Skip to content

How to scroll and select the record programmatically in WPF DataGrid (SfDataGrid)? #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
This sample show cases how to scroll and select the record programmatically in [WPF DataGrid](https://www.syncfusion.com/wpf-controls/datagrid) (SfDataGrid).

You can scroll to record programmatically using `ScrollInView` method by passing the row index of the record in [WPF DataGrid](https://www.syncfusion.com/wpf-controls/datagrid) (SfDataGrid). You can get the row index of the record by using [ResolveToRowIndex](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Grid.GridIndexResolver.html#Syncfusion_UI_Xaml_Grid_GridIndexResolver_ResolveToRowIndex_Syncfusion_UI_Xaml_Grid_SfDataGrid_System_Object_) extension method present in **Syncfusion.UI.Xaml.Grid.Helpers**.

KB article - [How to scroll and select the record programmatically in WPF DataGrid (SfDataGrid)?](https://www.syncfusion.com/kb/8624/how-to-scroll-and-select-the-record-programmatically-in-wpf-datagrid-sfdatagri)