DataRepeaterItemCloneEventArgs Class

Provides data for the ItemCloning event.

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

Syntax

'Declaration
Public Class DataRepeaterItemCloneEventArgs _
    Inherits EventArgs
'Usage
Dim instance As DataRepeaterItemCloneEventArgs
public class DataRepeaterItemCloneEventArgs : EventArgs
public ref class DataRepeaterItemCloneEventArgs : public EventArgs
public class DataRepeaterItemCloneEventArgs extends EventArgs

Remarks

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

The DataRepeaterItemCloneEventArgs contains a Handled property that specifies whether the control should handle the cloning. If you set the Handled property 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 property to False.

Note

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

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.VisualBasic.PowerPacks.DataRepeaterItemCloneEventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DataRepeaterItemCloneEventArgs Members

Microsoft.VisualBasic.PowerPacks Namespace

ItemCloning

Other Resources

Introduction to the DataRepeater Control (Visual Studio)