ComponentOne DataGrid for WPF and Silverlight
AutoGeneratingColumn Event (C1DataGrid)

C1.WPF.DataGrid Namespace > C1DataGrid Class : AutoGeneratingColumn Event
Occurs when the auto-generated columns are being created.
Syntax
'Declaration
 
Public Event AutoGeneratingColumn As System.EventHandler(Of DataGridAutoGeneratingColumnEventArgs)
public event System.EventHandler<DataGridAutoGeneratingColumnEventArgs> AutoGeneratingColumn
Event Data

The event handler receives an argument of type DataGridAutoGeneratingColumnEventArgs containing data related to this event. The following DataGridAutoGeneratingColumnEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether the event is canceled.  
Gets or sets the column that is being generated.  
Gets or sets the property info corresponding to the generated column.  
Remarks
You can change the auto-generated column by setting the property DataGridAutoGeneratingColumnEventArgs.Column. You can cancel an auto-generated column by setting the property DataGridAutoGeneratingColumnEventArgs.Cancel to true, in this case there will not be column for this property.
See Also