You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by ShrutiJaiswal1494 June 18, 2021
Hi,
I am trying to change the SelectedItem of a DataGrid from code behind but by default, the view doesn't scroll to the selected item. I see there is a ScrollIntoView method available to do that. Using the below code throws an exception System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. (Parameter 'index')'
Discussed in #6099
Originally posted by ShrutiJaiswal1494 June 18, 2021
Hi,
I am trying to change the SelectedItem of a DataGrid from code behind but by default, the view doesn't scroll to the selected item. I see there is a
ScrollIntoView
method available to do that. Using the below code throws an exceptionSystem.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. (Parameter 'index')'
Is there any other way to achieve this?
Code:
The text was updated successfully, but these errors were encountered: