Spread Windows Forms 7.0 Product Documentation
SheetView Constructor(ISheetDataModel)
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SheetView Constructor : SheetView Constructor(ISheetDataModel)


dataModel
Data model

Glossary Item Box

Creates a sheet (SheetView object) according to a specified data model.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal dataModel As ISheetDataModel _
)
Visual Basic (Usage)Copy Code
Dim dataModel As ISheetDataModel
 
Dim instance As New SheetView(dataModel)
C# 
public SheetView( 
   ISheetDataModel dataModel
)

Parameters

dataModel
Data model

Example

This example creates a SheetView object, adds it to the collection of sheets, and applies it to the active sheet.
Visual BasicCopy Code
Dim dm As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(4, 4)
Dim sv As New FarPoint.Win.Spread.SheetView(dm)
FpSpread1.Sheets.Add(sv)
FpSpread1.ActiveSheet = sv
C#Copy Code
FarPoint.Win.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(4, 4);
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView(dm);
fpSpread1.Sheets.Add(sv);
fpSpread1.ActiveSheet = sv;

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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