System.Web.UI.WebControls.FormView.ItemCreated Event

Occurs after all the rows are created in a System.Web.UI.WebControls.FormView control.

Syntax

public event EventHandler ItemCreated

Remarks

The FormView.ItemCreated event is raised after all rows are created in a System.Web.UI.WebControls.FormView control. This can occur when the control is first rendered, or when the user navigates to another record. You can use this event to provide an event-handling method that performs a custom routine, such as adding to or modifying the contents of a row, whenever this event occurs.

Note:

The FormView.ItemCreated event occurs before the System.Web.UI.WebControls.FormView control is bound to data. To modify the value of a bound field, use the BaseDataBoundControl.DataBound event.

You can access the header, footer, and pager rows in the System.Web.UI.WebControls.FormView control by using the FormView.HeaderRow, FormView.FooterRow, FormView.TopPagerRow, or FormView.BottomPagerRow properties, respectively. To access the data row, use the FormView.Row property.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0