DataRepeater.UserAddedItems Event
Occurs when the user adds a new DataRepeaterItem by pressing the CTRL+N keyboard shortcut.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'宣言
Public Event UserAddedItems As DataRepeaterAddRemoveItemsEventHandler
public event DataRepeaterAddRemoveItemsEventHandler UserAddedItems
public:
event DataRepeaterAddRemoveItemsEventHandler^ UserAddedItems {
void add (DataRepeaterAddRemoveItemsEventHandler^ value);
void remove (DataRepeaterAddRemoveItemsEventHandler^ value);
}
member UserAddedItems : IEvent<DataRepeaterAddRemoveItemsEventHandler,
DataRepeaterAddRemoveItemsEventArgs>
JScript does not support events.
Remarks
The UserAddedItems event is raised when a request is made to add a new item, before the new item is displayed. Use this event to retrieve the index for the new item from the DataRepeaterAddRemoveItemsEventArgs.
注意
This event is raised only when the user adds an item by using the keyboard shortcut. The ItemsAdded event is raised first and handles all methods of adding a new item.
For more information about how to handle events, see Consuming Events.
.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
Microsoft.VisualBasic.PowerPacks Namespace
Other Resources
Introduction to the DataRepeater Control (Visual Studio)
How to: Disable Adding and Deleting DataRepeater Items (Visual Studio)