Edit

Share via


DataControlFieldCollection.Insert(Int32, DataControlField) Method

Definition

Inserts the specified DataControlField object into the DataControlFieldCollection collection at the specified index.

public:
 void Insert(int index, System::Web::UI::WebControls::DataControlField ^ field);
public void Insert (int index, System.Web.UI.WebControls.DataControlField field);
member this.Insert : int * System.Web.UI.WebControls.DataControlField -> unit
Public Sub Insert (index As Integer, field As DataControlField)

Parameters

index
Int32

The zero-based index at which the DataControlField is inserted.

field
DataControlField

The DataControlField to insert.

Exceptions

index is less than 0.

-or-

index is greater than Count.

Applies to

See also