ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / AutoGeneratingColumn Event

In This Topic
    AutoGeneratingColumn Event
    In This Topic
    Occurs when the auto-generated columns are being created.
    Syntax
    '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.

    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