DataRepeaterItemCloneEventArgs.Handled Property

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

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

Syntax

'Declaration
Public Property Handled As Boolean
public bool Handled { get; set; }
public:
property bool Handled {
    bool get ();
    void set (bool value);
}
member Handled : bool with get, set
function get Handled () : boolean 
function set Handled (value : boolean)

Property Value

Type: Boolean
true if you are handling the cloning yourself; otherwise, false. The default is false.

Remarks

The Handled property 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 property to False.

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.

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)