DataGridView.OnAutoSizeRowsModeChanged Method

Definition

Raises the AutoSizeRowsModeChanged event.

protected:
 virtual void OnAutoSizeRowsModeChanged(System::Windows::Forms::DataGridViewAutoSizeModeEventArgs ^ e);
protected virtual void OnAutoSizeRowsModeChanged (System.Windows.Forms.DataGridViewAutoSizeModeEventArgs e);
abstract member OnAutoSizeRowsModeChanged : System.Windows.Forms.DataGridViewAutoSizeModeEventArgs -> unit
override this.OnAutoSizeRowsModeChanged : System.Windows.Forms.DataGridViewAutoSizeModeEventArgs -> unit
Protected Overridable Sub OnAutoSizeRowsModeChanged (e As DataGridViewAutoSizeModeEventArgs)

Parameters

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnAutoSizeRowsModeChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs) in a derived class, be sure to call the base class's OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs) method so that registered delegates receive the event.

Applies to

See also