Επεξεργασία

Κοινή χρήση μέσω


DataGridColumnStyle.ReleaseHostedControl Method

Definition

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

protected public:
 virtual void ReleaseHostedControl();
protected internal virtual void ReleaseHostedControl ();
abstract member ReleaseHostedControl : unit -> unit
override this.ReleaseHostedControl : unit -> unit
Protected Friend Overridable Sub ReleaseHostedControl ()

Remarks

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.

Applies to