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

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

Property Value

Type: System.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.

See Also

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

Return to top