Edit

Share via


DataGrid.AutoGeneratedColumns Event

Definition

Occurs when auto generation of all columns is completed.

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

Event Type

Remarks

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.

Note

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