Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGrid.AutoGeneratedColumns Event

.NET Framework (current version)
 

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.

System_CAPS_noteNote

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
Show:
© 2017 Microsoft