DataGridTableStyle::PreferredRowHeightChanged Event
.NET Framework (current version)
Occurs when the PreferredRowHeight value changes.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
For more information about handling events, see Handling and Raising Events.
The following code example demonstrates the use of this member.
void SetUp() { // Create a DataSet with a table. MakeDataSet(); // Bind the DataGrid to the DataSet. myDataGrid->SetDataBinding( myDataSet, "Orders" ); myTableStyle = gcnew DataGridTableStyle; // Map 'DataGridTableStyle' instance to the DataTable. myTableStyle->MappingName = "Orders"; // Add EventHandler function for 'PreferredRowHeightChanged' Event. myTableStyle->PreferredRowHeightChanged += gcnew EventHandler( this, &MyDataForm::RowHeight_Changed ); } // Called when the PreferredRowHeight property of myTableStyle is modified void RowHeight_Changed( Object^ /*sender*/, EventArgs^ /*e*/ ) { MessageBox::Show( "PreferredRowHeight property is changed" ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: