Share via


DataRepeaterItemCloneEventArgs Constructor

Initializes a new instance of the DataRepeaterItemCloneEventArgs class.

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

Syntax

'Declaration
Public Sub New ( _
    source As DataRepeaterItem _
)
public DataRepeaterItemCloneEventArgs(
    DataRepeaterItem source
)
public:
DataRepeaterItemCloneEventArgs(
    DataRepeaterItem^ source
)
new : 
        source:DataRepeaterItem -> DataRepeaterItemCloneEventArgs
public function DataRepeaterItemCloneEventArgs(
    source : DataRepeaterItem
)

Parameters

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.

.NET Framework Security

See Also

Reference

DataRepeaterItemCloneEventArgs Class

Microsoft.VisualBasic.PowerPacks Namespace

ItemCloning

Other Resources

Introduction to the DataRepeater Control (Visual Studio)