The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DataColumnCollection.CollectionChanged Event
Visual Studio 2010
Occurs when the columns collection changes, either by adding or removing a column.
Assembly: System.Data (in System.Data.dll)
The following example adds an event handler for the CollectionChanged event.
Private Sub AddEventHandler(table As DataTable) Dim columns As DataColumnCollection = table.Columns AddHandler columns.CollectionChanged, _ AddressOf ColumnsCollection_Changed End Sub Private Sub ColumnsCollection_Changed _ (sender As Object, e As System.ComponentModel. _ CollectionChangeEventArgs) Dim columns As DataColumnCollection = _ CType(sender, DataColumnCollection) Console.WriteLine("ColumnsCollectionChanged: " _ & columns.Count.ToString()) End Sub
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Community Additions
Show: