Spread ASP.NET 6.0 Product Documentation
OperationMode Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : OperationMode Property


Glossary Item Box

Gets or sets the operation mode of the sheet.

Syntax

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

Property Value

OperationMode setting that sets the mode

Example

This example creates a spreadsheet with 6 columns and 20 rows and single-selection mode in which the user can select a row but is unable to edit the data.
C#Copy Code
FarPoint.Web.Spread.SheetViewsv=FpSpread1.ActiveSheetView;
inti,j;
sv.ColumnCount=6;
sv.PageSize=20;
sv.RowCount=20;
sv.OperationMode=FarPoint.Web.Spread.OperationMode.SingleSelect;
for(i=0;i<=19;i++)
{
for(j=0;j<=5;j++)
sv.SetValue(i,j,100+i);
}
Visual BasicCopy Code
DimsvAsFarPoint.Web.Spread.SheetView
Dimi,jAsInteger
sv=FpSpread1.ActiveSheetView
sv.ColumnCount=6
sv.PageSize=20
sv.RowCount=20
sv.OperationMode=FarPoint.Web.Spread.OperationMode.SingleSelect
Fori=0To19
Forj=0To5
sv.SetValue(i,j,100+i)
Nextj
Nexti

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.