Occurs when the columns collection changes, either by adding or removing a column.
The following declaration shows the syntax for a method that handles the CollectionChanged event.
[Visual Basic] Private Sub ColumnsCollectionName_CollectionChanged( _ ByVal sender As Object, _ ByVal e As CollectionChangeEventArgs _ ) [C#] private void ColumnsCollectionName_CollectionChanged( object sender, CollectionChangeEventArgs e ); [C++] private: void ColumnsCollectionName_CollectionChanged( Object* sender, CollectionChangeEventArgs* e ); [JScript] private ColumnsCollectionName_CollectionChanged( sender : Object, e : CollectionChangeEventArgs );
The Contains and CanRemove methods can be used to determine if a column exists and can be removed.
ColumnsCollection Class | ColumnsCollection MembersTopic | System.Data Namespace