Share via


DataRepeater.UserDeletingItems Event

 

Occurs when the user deletes a DataRepeaterItem by pressing the DELETE key.

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

Syntax

public event DataRepeaterAddRemoveItemsCancelEventHandler UserDeletingItems
public:
event DataRepeaterAddRemoveItemsCancelEventHandler^ UserDeletingItems {
    void add(DataRepeaterAddRemoveItemsCancelEventHandler^ value);
    void remove(DataRepeaterAddRemoveItemsCancelEventHandler^ value);
}
member UserDeletingItems : IEvent<DataRepeaterAddRemoveItemsCancelEventHandler,
    DataRepeaterAddRemoveItemsCancelEventArgs>
Public Event UserDeletingItems As DataRepeaterAddRemoveItemsCancelEventHandler

Remarks

You can use the Cancel property of the DataRepeaterAddRemoveItemsCancelEventArgs class to cancel the deletion.

Note

This event is raised only when the user deletes an item by using the keyboard shortcut. The ItemsRemoved event is raised first and handles all methods of deleting an item.

For more information about how to handle events, see Handling and Raising Events.

See Also

ItemsRemoved
UserDeletedItems
DataRepeater Class
Microsoft.VisualBasic.PowerPacks Namespace
Introduction to the DataRepeater Control (Visual Studio)
How to: Disable Adding and Deleting DataRepeater Items (Visual Studio)

Return to top