RowAdded

RowAdded() As Object

Event fired when the user adds a row.

When the user adds a row, the update grid needs to have an object attached to it. Add an object to the end of your collection and return it from this event. The grid will behave as if it were the last object returned from GetItems.

This event is called only after the first cell is entered for the new object. Immediately afterward, SetCellValue is called, followed by GetItems to ensure that the new object is indeed in the collection.


Example:

Add a new object to your collection, and return that object.


Private Function itemsGrid_RowAdded() As Object
Return _order.NewItem()
End Function


Returns:

Object