Share via


DataRepeaterItemCloneEventArgs Constructor (DataRepeaterItem)

 

Initializes a new instance of the DataRepeaterItemCloneEventArgs class.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

public DataRepeaterItemCloneEventArgs(
    DataRepeaterItem source
)
public:
DataRepeaterItemCloneEventArgs(
    DataRepeaterItem^ source
)
new : 
        source:DataRepeaterItem -> DataRepeaterItemCloneEventArgs
Public Sub New (
    source As DataRepeaterItem
)

Parameters

  • src
    The ItemTemplate from which the new item will be cloned.

Remarks

Use the ItemCloning event to run custom code before cloning or to override the cloning process. This event occurs before the DataRepeaterItem and its controls are cloned from the ItemTemplate.

The DataRepeaterItemCloneEventArgs contains a handled parameter that specifies whether the control should handle the cloning. If you set handled to True, you are overriding the default cloning process and must handle all cloning yourself. To run custom code before the default cloning starts, set the handled parameter to False.

Note

If you want to make minor changes to the cloning process, consider using the ItemCloned event instead.

See Also

ItemCloning
DataRepeaterItemCloneEventArgs Class
Microsoft.VisualBasic.PowerPacks Namespace
Introduction to the DataRepeater Control (Visual Studio)

Return to top