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.
Namespace:
System.Windows.Controls
Assembly:
System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
Visual Basic (Declaration)
Public Event AutoGeneratingColumn As EventHandler(Of DataGridAutoGeneratingColumnEventArgs)
Dim instance As DataGrid
Dim handler As EventHandler(Of DataGridAutoGeneratingColumnEventArgs)
AddHandler instance.AutoGeneratingColumn, handler
public event EventHandler<DataGridAutoGeneratingColumnEventArgs> AutoGeneratingColumn
<data:DataGrid AutoGeneratingColumn="eventhandler"/>
XAML Values
- data:
A prefix that is defined to map the XML namespace for the System.Windows.Controls.Data assembly and the System.Windows.Controls CLR namespace.
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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference
Other Resources