AutoGeneratedColumns Event

DataGrid.AutoGeneratedColumns Event

.NET Framework 4.6 and 4.5

Occurs when auto generation of all columns is completed.

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

public event EventHandler AutoGeneratedColumns

If the AutoGenerateColumns property is set to true, the AutoGeneratingColumn event is raised for each column created. When all columns are created, this event will occur.


The AutoGeneratedColumns event is raised every time the DataGrid attempts to generate columns. For example, AutoGeneratedColumns is raised when the DataGrid is initialized, AutoGenerateColumns is set to true, or the ItemsSource is changed, even if the ItemsSource is null.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft