Dynamic Data Flow - Dynamic Column Custom Handler
- To setup custom routine in the data flow script for additional setup of dynamically added data flow column, attribute your script main class with DataFlowColumnAdded attribute. Set as parameter the name of the script method. Check below the required handler method layout.
| 1 2 3 4 5 6 | <DataFlowColumnAdded("OnColumnAdded")> _
 PublicClassScriptMain
     InheritsUserComponent
 ...
     PublicSubOnColumnAdded(ByValcomponent AsIDTSComponentMetaData90, ByValisInput AsBoolean, ByValcolName AsString)
 …
 | 

Make sure that you have set DelayValidation to True in Data Flow Task Plus.