DataGridColumn.LoadViewState(Object) 方法
定义
加载 DataGridColumn 对象的状态。Loads the state of the DataGridColumn object.
protected:
virtual void LoadViewState(System::Object ^ savedState);
protected virtual void LoadViewState (object savedState);
abstract member LoadViewState : obj -> unit
override this.LoadViewState : obj -> unit
Protected Overridable Sub LoadViewState (savedState As Object)
参数
- savedState
- Object
Object,它包含已保存的 DataGridColumn 状态。An Object that contains the saved state of the DataGridColumn.
注解
此方法主要由 .NET Framework 基础结构使用,不应在代码中直接使用。This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. 不过,控件开发人员可以重写此方法,以指定自定义服务器控件如何还原其视图状态。However, control developers can override this method to specify how a custom server control restores its view state. 有关详细信息,请参阅 ASP.NET 状态管理概述。For more information, see ASP.NET State Management Overview.
使用 LoadViewState 方法加载对象的状态 DataGridColumn 。Use the LoadViewState method to load the state of the DataGridColumn object. 这允许列执行自定义视图状态管理。This allows a column to perform custom view-state management.