'Declaration
Public Event AutoGeneratingColumn As EventHandler(Of DataGridAutoGeneratingColumnEventArgs)
public event 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.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the event is canceled. |
Column | Gets or sets the column that is being generated. |
Property | 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