Spread for ASP.NET 7.0 Product Documentation
IsTrackingViewState Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : IsTrackingViewState Property


Glossary Item Box

Gets or sets whether the control tracks the current sheet view state.

Syntax

Visual Basic (Declaration) 
Public Property IsTrackingViewState As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Boolean
 
instance.IsTrackingViewState = value
 
value = instance.IsTrackingViewState
C# 
public bool IsTrackingViewState {get; set;}

Property Value

Boolean: true to have the component track the view state; false otherwise

Remarks

Set this property to true to save the current sheet, including the models to a session state. Setting this property to true also updates the data model when the data is edited.

Set this property to false to prevent an update of the data model when the data is edited and to prevent the current view models being saved. If you set this property to false, you must handle the editing events to account for changes to the data.

Setting this property to false results in much smaller output. Keep this in mind when setting this property.

Example

This example turns off the view state for the component.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.IsTrackingViewState = false;
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.IsTrackingViewState = False

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.