The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataRepeater.ItemCloning Event

Occurs before the DataRepeaterItem and its controls are cloned from the ItemTemplate.

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

public event DataRepeaterItemCloneEventHandler ItemCloning

Use this event to run custom code before cloning or to override the cloning process.

The DataRepeaterItemCloneEventArgs class contains a handled parameter that specifies whether the control should handle the cloning. If you set handled to true, you override 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.


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

For more information about how to handle events, see Consuming Events.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft