PropertyGridEditorPart.ApplyChanges Method ()
Assembly: System.Web (in System.Web.dll)
The PropertyGridEditorPart control. The method saves the values a user has set on a PropertyGridEditorPart control to the corresponding properties in the associated WebPart control. The associated control is referenced in the PropertyGridEditorPart control's inherited WebPartToEdit property.method is a critical method on a
You cannot override the PropertyGridEditorPart type is sealed to prevent inheriting from it. However, if you need more programmatic control over the process of editing various WebPart control properties than the PropertyGridEditorPart control provides, you can create a custom EditorPart control and provide your own implementation of this method. For a code example, see the ApplyChanges method.method because the
The WebPart control, provided that those properties each have a [WebBrowsable(true)] attribute.method attempts to set the values on public custom properties in the associated
Themethod is called when the user clicks a button representing an OK or an apply verb in the editing user interface (UI). You can also call it directly from your own code if there is a need to save the edited values apart from user actions.
Available since 2.0