System.Data.DataColumnCollection.Remove C# (CSharp) Method

Remove() public method

Removes the specified from the collection.
public Remove ( DataColumn column ) : void
column DataColumn
return void
        public void Remove(DataColumn column)
        {
            OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.Remove, column));
            BaseRemove(column);
            ArrayRemove(column);
            OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Remove, column));
            // if the column is an element decrease the internal dataTable counter
            if (column.ColumnMapping == MappingType.Element)
            {
                _table.ElementColumnCount--;
            }
        }

Same methods

DataColumnCollection::Remove ( string name ) : void