'Declaration Public Event ViewRowAdding As EventHandler(Of ViewRowAddingEventArgs)
public event EventHandler<ViewRowAddingEventArgs> ViewRowAdding
Event Data
The event handler receives an argument of type ViewRowAddingEventArgs containing data related to this event. The following ViewRowAddingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Row | Gets the new view row that has just been added to ViewRowCollection. |
Remarks
This event occurs only if the new row is created directly in the view, as a result of a view update operation, that is, with ViewRowCollection.CreateRow or via data binding. It does not occur when new rows appear in the view as a result of view maintenance on changes made to the view's source data collections.
This event occurs immediately on creating the new row, before the method creating it returns, before the row enters edit mode (see ViewRowState about edit mode).
See Also