Export (0) Print
Expand All
Expand Minimize

DataGrid.OnItemsSourceChanged Method

Invoked when the ItemsSource property changes.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

abstract OnItemsSourceChanged : 
        oldValue:IEnumerable * 
        newValue:IEnumerable -> unit  
override OnItemsSourceChanged : 
        oldValue:IEnumerable * 
        newValue:IEnumerable -> unit

Parameters

oldValue
Type: System.Collections.IEnumerable

The old source.

newValue
Type: System.Collections.IEnumerable

The new source.

If the AutoGenerateColumns property is true, columns are regenerated when the ItemsSource property changes. If possible, the cell or row selection will be maintained.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft