DataRepeaterItemCloneEventArgs Constructor
Initializes a new instance of the DataRepeaterItemCloneEventArgs class.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'Declaration
Public Sub New ( _
src As DataRepeaterItem _
)
'Usage
Dim src As DataRepeaterItem
Dim instance As New DataRepeaterItemCloneEventArgs(src)
public DataRepeaterItemCloneEventArgs(
DataRepeaterItem src
)
public:
DataRepeaterItemCloneEventArgs(
DataRepeaterItem^ src
)
public function DataRepeaterItemCloneEventArgs(
src : DataRepeaterItem
)
Parameters
src
Type: Microsoft.VisualBasic.PowerPacks.DataRepeaterItemThe ItemTemplate from which the new item will be cloned.
Remarks
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.
The DataRepeaterItemCloneEventArgs contains a handled parameter that 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 parameter to False.
Note
If you want to make minor changes to the cloning process, consider using the ItemCloned event instead.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataRepeaterItemCloneEventArgs Class
DataRepeaterItemCloneEventArgs Members
Microsoft.VisualBasic.PowerPacks Namespace