System.Web.UI.WebControls.FormView.Row Property

Gets the System.Web.UI.WebControls.FormViewRow object that represents the data row in a System.Web.UI.WebControls.FormView control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual FormViewRow Row { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the FormView.Row property to programmatically access the System.Web.UI.WebControls.FormViewRow object that represents the data row. The data row contains different content based on the template rendered for the current mode (specified by the FormView.CurrentMode property). You can only access the contents of the template for the current mode. The following table shows which template is used for each mode.

Edit

FormView.EditItemTemplate

Insert

FormView.InsertItemTemplate

Read-only

FormView.ItemTemplate

Note:

The FormView.Row property is available only after the System.Web.UI.WebControls.FormView control creates the data row in the FormView.ItemCreated event.

This property is commonly used when you need to programmatically manipulate the data row, for example when adding custom content. Any modification to the FormView.Row property must be performed after the System.Web.UI.WebControls.FormView control has been data-bound; otherwise, the System.Web.UI.WebControls.FormView control overwrites any changes.

Requirements

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