DataGridColumn.TrackViewState 方法

定义

导致跟踪服务器控件的视图状态的更改,以便这些更改可以存储到服务器控件的 StateBag 对象中。Causes tracking of view-state changes to the server control so they can be stored in the server control's StateBag object.

protected:
 virtual void TrackViewState();
protected virtual void TrackViewState ();
abstract member TrackViewState : unit -> unit
override this.TrackViewState : unit -> unit
Protected Overridable Sub TrackViewState ()

注解

使用 TrackViewState 方法可跟踪服务器控件的视图状态更改,以便可以将这些更改存储到服务器控件的对象中 System.Web.UI.StateBagUse the TrackViewState method to track view-state changes on the server control so they can be stored in the server control's System.Web.UI.StateBag object. 这允许列执行自定义视图状态管理。This allows a column to perform custom view-state management.

适用于

另请参阅