DataGrid.AutoGeneratedColumns Event


Occurs when auto generation of all columns is completed.

 event EventHandler ^ AutoGeneratedColumns;
public event EventHandler AutoGeneratedColumns;
member this.AutoGeneratedColumns : EventHandler 
Public Custom Event AutoGeneratedColumns As EventHandler 
Public Event AutoGeneratedColumns As EventHandler 


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.

Applies to