[]
Occurs one time for each public, non-static property in the bound data type when the ItemsSource property is changed and the AutoGenerateColumns property is true.
public event EventHandler<AutoGeneratingListColumnEventArgs> AutoGeneratingColumn
Public Event AutoGeneratingColumn As EventHandler(Of AutoGeneratingListColumnEventArgs)
Type | Description |
---|---|
EventHandler<AutoGeneratingListColumnEventArgs> | Occurs one time for each public, non-static property in the bound data type when the property is changed and the property is true. |
This event gives you the option of altering each generated column before it is added to the control. Additionally, you have the option of canceling the event to prevent specific columns from being added.