DataGridColumnStyle.ReleaseHostedControl Method ()

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected internal virtual void ReleaseHostedControl()

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

.NET Framework
Available since 1.1
Return to top
Show: