DataRepeater.DeletingItems Event

Occurs when a DataRepeaterItem is being deleted.

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

Syntax

'Declaração
Public Event DeletingItems As DataRepeaterAddRemoveItemsCancelEventHandler
public event DataRepeaterAddRemoveItemsCancelEventHandler DeletingItems
public:
 event DataRepeaterAddRemoveItemsCancelEventHandler^ DeletingItems {
    void add (DataRepeaterAddRemoveItemsCancelEventHandler^ value);
    void remove (DataRepeaterAddRemoveItemsCancelEventHandler^ value);
}
member DeletingItems : IEvent<DataRepeaterAddRemoveItemsCancelEventHandler,
    DataRepeaterAddRemoveItemsCancelEventArgs>
JScript does not support events.

Remarks

Use this event to cancel a deletion by setting the Cancel property of the DataRepeaterAddRemoveItemsCancelEventArgs to True.

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

.NET Framework Security

See Also

Reference

DataRepeater Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

Introduction to the DataRepeater Control (Visual Studio)

How to: Disable Adding and Deleting DataRepeater Items (Visual Studio)