GridTableStylesCollection::CollectionChanged Event
.NET Framework (current version)
Occurs when the collection has changed.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
For more information about handling events, see Handling and Raising Events.
The following code example adds a CollectionChangeEventHandler delegate to a CollectionChanged event.
private: void AddHandler() { dataGrid1->TableStyles->CollectionChanged += gcnew CollectionChangeEventHandler( this, &Form1::Collection_Changed ); } void Collection_Changed( Object^ sender, CollectionChangeEventArgs^ e ) { GridTableStylesCollection^ gts = (GridTableStylesCollection^)(sender); Console::WriteLine( gts->Count ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: