DataRepeaterItemCloneEventArgs Class

 

Provides data for the ItemCloning event.

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

Inheritance Hierarchy

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

Syntax

public class DataRepeaterItemCloneEventArgs : EventArgs
public ref class DataRepeaterItemCloneEventArgs : EventArgs
type DataRepeaterItemCloneEventArgs = 
    class
        inherit EventArgs
    end
Public Class DataRepeaterItemCloneEventArgs
    Inherits EventArgs

Constructors

Name Description
System_CAPS_pubmethod DataRepeaterItemCloneEventArgs(DataRepeaterItem)

Initializes a new instance of the DataRepeaterItemCloneEventArgs class.

Properties

Name Description
System_CAPS_pubproperty Handled

Gets or sets a value that specifies whether the cloning is handled by the developer.

System_CAPS_pubproperty Source

Gets the DataRepeaterItem from which the new DataRepeaterItem will be cloned.

System_CAPS_pubproperty Target

Gets or sets the new DataRepeaterItem that is the result of the cloning operation.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.

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

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

Return to top