System.Data.DataColumnCollection.Add Method

Creates and adds the specified System.Data.DataColumn object to the System.Data.DataColumnCollection.

Syntax

public void Add (DataColumn column)

Parameters

column
The System.Data.DataColumn to add.

Remarks

If the collection is successfully changed by adding or removing columns, the DataColumnCollection.CollectionChanged event occurs.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0