FlexGrid for WPF | ComponentOne
C1.WPF.Grid Assembly / C1.WPF.Grid Namespace / FlexGrid Class / AutoGeneratingColumn Event

In This Topic
    AutoGeneratingColumn Event (FlexGrid)
    In This Topic
    Occurs when an auto-generated column is being created.
    Syntax
    'Declaration
     
    Public Event AutoGeneratingColumn As EventHandler(Of GridAutoGeneratingColumnEventArgs)
    public event EventHandler<GridAutoGeneratingColumnEventArgs> AutoGeneratingColumn
    Event Data

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

    PropertyDescription
    Gets or sets a value indicating whether the associated event should be canceled. (Inherited from C1.WPF.Grid.CancelEventArgs)
    Gets a value indicating whether the associated event is cancellable. (Inherited from C1.WPF.Grid.CancelEventArgs)
    Gets or sets the column that is being auto-generated.  
    Gets the property info associated to the column that is being auto-generated.  
    Remarks
    You can change the auto-generated column by setting the property GridAutoGeneratingColumnEventArgs.Column. You can cancel an auto-generated column by setting the property CancelEventArgs.Cancel to true, in this case there will not be column for this property.
    See Also