GridView.SaveControlState Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves the state of the properties in the GridView control that need to be persisted, even when the EnableViewState property is set to false
.
protected public:
override System::Object ^ SaveControlState();
protected internal override object SaveControlState();
override this.SaveControlState : unit -> obj
Protected Friend Overrides Function SaveControlState () As Object
Returns the server control's current view state. If there is no view state associated with the control, this method returns null
.
This method is used to save the state of the properties in the GridView control that need to be persisted, even when the Control.EnableViewState property is set to false
.
Note
This method is used primarily by control developers to extend the GridView control.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: