Compartir a través de


DataRepeaterItemCloneEventArgs.Source Property

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

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

Syntax

'Declaration
Public ReadOnly Property Source As DataRepeaterItem
public DataRepeaterItem Source { get; }
public:
property DataRepeaterItem^ Source {
    DataRepeaterItem^ get ();
}
member Source : DataRepeaterItem with get
function get Source () : DataRepeaterItem

Property Value

Type: Microsoft.VisualBasic.PowerPacks.DataRepeaterItem
The object from which the new object will be cloned.

Remarks

The Source property contains the DataRepeaterItem that is used as the source of the cloning operation. The Target will be cloned based on the ItemTemplate properties, unless you override them in the ItemCloning event.

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)