This documentation is archived and is not being maintained.

DataRepeater.ItemValuePushed Event

Occurs when the VirtualMode property is set to True and the value of a child control in the DataRepeaterItem changes.

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

private event DataRepeaterItemValueEventHandler ItemValuePushed

In virtual mode, use this event to save changes to the child control values to your data store.

When the VirtualMode property is set to False, this event is not raised.

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

The following example demonstrates how to handle the ItemValuePushed event. It assumes that you have a DataRepeater control named DataRepeater1 that has its VirtualMode property set to True, and that you have a data store for a simple Employee object named cEmployees.

Private Sub DataRepeater1_ItemValuePushed(ByVal sender As Object, _
 ByVal e As _
 Microsoft.VisualBasic.PowerPacks.DataRepeaterItemValueEventArgs) _
 Handles DataRepeater1.ItemValuePushed
    cEmployees.Item(e.ItemIndex + 1).lastname = e.Control.Text
End Sub

Show: