Edge
4.6.2
4.7
NotPlanned
xref:System.Windows.Controls.DataGrid.ScrollIntoView(System.Object) will work asynchronously when column virtualization is enabled but the column widths have not yet been determined. If columns are removed before the asynchronous work happens, an xref:System.ArgumentOutOfRangeException?displayProperty=name can occur.
- Quirked
- Build-time break
Any one of the following:
- Upgrade to .NET Framework 4.7.
- Install the latest servicing patch for .NET Framework 4.6.2.
- Avoid removing columns until the asynchronous response to xref:System.Windows.Controls.DataGrid.ScrollIntoView(System.Object) has completed.
M:System.Windows.Controls.DataGrid.ScrollIntoView(System.Object)
M:System.Windows.Controls.DataGrid.ScrollIntoView(System.Object,System.Windows.Controls.DataGridColumn)
Windows Presentation Foundation (WPF)