DataGridColumnStyle::WidthChanged Event
.NET Framework (current version)
Occurs when the Width property value changes.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example demonstrates the use of this member.
// Add the 'Customer ID' column style. DataGridColumnStyle^ myIDCol = gcnew DataGridTextBoxColumn; myIDCol->MappingName = "custID"; myIDCol->HeaderText = "Customer ID"; myIDCol->Width = 100; myIDCol->WidthChanged += gcnew EventHandler( this, &MyForm::MyIDColumnWidthChanged ); myDataGridTableStyle->GridColumnStyles->Add( myIDCol );
.NET Framework
Available since 1.1
Available since 1.1
Show: