System.Windows.Forms.DataGridColumnStyle.ReleaseHostedControl Method

Allows the column to free resources when the control it hosts is not needed.

Syntax

protected virtual void ReleaseHostedControl ()

Remarks

If you create a class that derives from System.Windows.Forms.DataGridColumnStyle, you will often use the derived class to host a control that is used to edit data. You should override the DataGridColumnStyle.ReleaseHostedControl method to release any references to the control in order to free system resources. For example, the System.Windows.Forms.DataGridTextBoxColumn derived class uses this method to release the reference to the hosted System.Windows.Forms.DataGridTextBox.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0